A teenager fired an air rifle to try to get revellers to leave a party at his home in the Highlands.
Eiran O’Connell, of Woodlands Terrace in Grantown, was yesterday given a six-month curfew after previously admitting the offence at Inverness Sheriff Court.
Sheriff Kevin Neal said it had been an act of “extreme folly” that could have resulted in a period of detention.
But he decided not to lock the 19-year-old up after hearing he was a changed man.
Fiscal depute David Morton told the court: “He was at a party in Grantown and took an unconventional way of asking people to leave.
“He took the air rifle into the garden, pointed it to the sky and discharged it.”
O’Connell previously admitted reckless discharging of the firearm at his house on November 14, 2014.
Defence agent Clare Russell said her client had “turned his life around” since then.
She added: “He has been accepted on a year long college course on construction and works part time as a carer in the evenings.
“He accepts what he did was stupid but he has grown up significantly since then.
“The party was over and he wanted people to leave but they had refused.”
Sheriff Neal told O’Connell he was lucky not to be locked up.
He said: “Discharging a firearm when members of the public were present, in the early hours of the morning and when alcohol was taken was an act of extreme folly.”
He ordered O’Connell to remain at home between 7.30pm and 6.30am for the next six months as part of a restriction of liberty order.