A teen who aggressively kicked hospital equipment and shouted at A&E staff has been placed on an electronic tag.

Blair Joseph Wilson also assaulted two policemen and attacked a car with an axe. The 18-year-old appeared before Ayr Sheriff Court for sentencing, having previously pled guilty to six charges.

Wilson maliciously struck the rear window of a car with an axe, damaging it, on February 19 last year at his home street, MacAterick Drive in Bellsbank.

Wilson appeared at court the following day and was bailed, but offended again a few months later, on July 29. He acted aggressively at Ayr Hospital, repeatedly shouted and swore, uttered threats of violence and refused to desist.

On the same date, Wilson assaulted a police constable on a public footpath outside his home by spitting on him and striking him with his elbow. He also repeatedly kicked another officer while travelling in an ambulance on the A713 between Dalmellington and Ayr.

On August 25 of this year, Wilson behaved in a threatening and abusive manner at Ayr Hospital’s A&E. He acted aggressively, repeatedly shouted and swore at medical staff and police, repeatedly kicked items of hospital equipment and headbutted a cupboard. At the time of this offence, Wilson was on bail.

Solicitor Mr Maxwell said that although his client had “behaved absolutely appallingly”, a Restriction of Liberty Order would enable him to stay in his employment.

Sheriff Mhairi McTaggart said: “When you get it right, you get it right. When you get it wrong, you get it wrong. That behaviour in the Accident and Emergency department was appalling and the unfortunate thing for you is that if you keep getting it wrong, you will go right into custody. Try and get it right Mr Wilson.”

Wilson was ordered to remain within his home address between the hours of 7pm-5.45am for three months.