A former Scotland football player accused of rape has said he regrets leaving his alleged victim alone in a flat after a night out.

David Goodwillie told a hearing he believes if he had stayed the night court proceedings would not have been brought against him.

He was giving evidence at the Court of Session as part of a civil damages case launched by the woman.

The 30-year-old woman claims she was raped by former Scotland striker Goodwillie and his then-Dundee United team-mate David Robertson in a flat in Armadale, West Lothian, in January 2011.

Criminal charges were dropped against Goodwillie in 2011, while Robertson was never charged.

Both men accept they had sex with the woman but say it was consensual.

The alleged victim, who cannot be named for legal reasons, claims she was too drunk to give consent.

Goodwillie told the court in Edinburgh on Thursday: "I do regret leaving. I do think if I stayed no one would have been here today.

"I just think waking up somewhere where you don't know where you are, it must have been terrifying."

Dorothy Bain QC, for Goodwillie, asked if he thought at any stage the woman was not consenting to what took place and he replied: "No."

The senior counsel asked him: "At any time did you think she was too drunk, too intoxicated to consent to what you were doing?".

He said: "No."

She said: "Did she ever say she didn't want to have sex with you?".

The Plymouth Argyle player said: "No."

Goodwillie, who got married earlier this year, told the court he and Robertson had played for Dundee United in a New Year game on January 1 against Aberdeen that year when he had scored a late equaliser, and had made plans to celebrate.

He said he had planned to go out in his home town of Stirling that evening with a cousin for a few drinks but the first bar was "dead" so he made arrangements to meet up with Robertson in Bathgate, West Lothian.

They were heading towards the Glenmavis Tavern, also known as Smiths, and were driving up the town's main street when they saw two women and asked for directions.

One of them was the woman now suing him who was out for evening with a friend.

Goodwillie said the women said they were going to the same pub.

He and his cousin joined Robertson and a group of his friends in the bar.

Goodwillie was asked if he had seen the women in the front bar at the pub.

He replied: "We would have been in the same group and crossed paths."

Goodwillie said on an evening out like that he would normally have a couple of beers then move on to spirits.

"I think I was drinking vodka Red Bull at the time," he said.

Ms Bain asked if he had met up with the two women in the back bar at the premises and he said: "Yes, I think that's when we established each other's names.

"He was asked if he found either of them attractive and he replied: "Yes, I did. I thought both of them were attractive."

He said he had been speaking a bit more to the other woman. After the pub they moved on to Chalmers nightclub in the town.

Goodwillie said: "I would probably say I was drunk."

He said that in the club the woman who has now accused him of rape bought him a drink and he danced with her friend.

Goodwillie agreed that after the club he was hoping to go on to a flat in Armadale with Robertson and the two women. He was asked how the woman suing him seemed to him.

He said: "She seemed fine. She was drunk, just like us, but no worse off than any of us."

A taxi was flagged down and the woman got in with the two footballers but her friend did not want to go and said she was tired, he told the court.

Goodwillie said during the taxi journey he thought the woman was "drunk, but she was fine, speaking, in conversation".

He said initially all three went to the living room in the flat but Robertson and the woman left the room.

The footballer said he was looking for a phone charger when he went into a room where Robertson and the woman were kissing.

The footballer said he was "just drunk" and went into the room where "one thing led to another".

He said he thought Robertson said to the woman "are you OK with him in the room?" and she said "yes".

Goodwillie, 27, said Robertson had sex with the woman and then told them that he had to leave but did not give an explanation.

He was asked how the woman reacted and said: "I don't think she was happy."

The footballer said after his then teammate left, he and the woman kissed and later had sex.

Goodwillie told the court she then went to another bedroom and got under the covers.

He said he spoke to her and told her he wanted to go home but she said she was staying.

"I didn't want to leave her there either," he said. "She was having none of it and wanted to stay."

Goodwillie added he thought she swore at him when he left.

He made his way back to his car in Bathgate and drove back to Stirling.

Simon Di Rollo QC, for the woman, asked him at what point in the evening he had decided he wanted to have sex with her.

He replied: "It wasn't until I was in the room."

Mr Di Rollo asked him if he had no intention of having sex with her when they were in the taxi and he replied: "No."

The QC asked: "Did you say in the taxi: I have got to do my duty?"

Goodwillie said: "No. I don't remember saying that."

He agreed he had been interested in the other woman who had been on a night out and that she turned him down.

Goodwillie told the court he would say he was doing well with Dundee United as a 21-year-old at the time and thought he might have left in the transfer window that January.

He told the court: "Then all this happened and nothing happened. I think it would have been Rangers at the time."

Goodwillie said after he was charged all contact broke down.