A Paisley man threatened to murder the people who were bullying his brother.
Intoxicated Kevin Corry was making threats to murder people while in possession of a Stanley knife on June 19, last year.
Corry, 23, admitted being in possession of the weapon in the town’s Lang Street.
Procurator fiscal depute, Amber Feeney told Paisley Sheriff Court: “Around 5.40pm police attended an ongoing disturbance in Lang Street when they observed the accused being loud and shouting in the general direction at police officers.
“While shouting, Corry was carrying a grey Stanley knife in his right hand above head height.
“Officers walked towards him as he was being ushered away by a witness.
“The accused dropped the knife and he was placed under arrest and the knife was recovered.
“Corry was taken to the rear of a police vehicle and he became aggressive shouting and swearing, ‘they c***s are bullying my brother.’
“He continued to shout and swear in an aggressive manner stating, ‘f**k it, I'm going to murder them.’
“Due to his level of intoxication, he wasn’t cautioned and charged.”
Corry, also admitted he shouted, swore and made racial and homophobic remarks at the Royal Alexandra Hospital on May 12 last year.
On the same date, he also attempted to headbutt PC Mitchell and kicked PC Macintosh.
James Arrol, defence agent told the court Corr, of Kilnside Road, accepted “full responsibility” for the incident.
Mr Arrol added: “The writer of the criminal justice social work report states Corry recognises he’s at fault.
“This was during a fairly significant period of time in his life where he was struggling with his own mental health problems.
“And on both occasions, he was under the influence of drink, and or drugs.
“Due to his mental health issues he was self-medicating with drink and drugs but he is in a much better place now.
“He is not taking drugs like he used to but he admits he is still using cannabis.”
Don't miss the latest headlines from around Renfrewshire. Sign up to our newsletters here.
On sentencing, Sheriff Lindsay Kooner said: “These two sets of offences were aggravated in serious ways.
“One where the locus of the incident was the hospital and the second by the fact you were on bail in possession of a knife in a public place.
“I could well justify sending you to custody for these matters.
“However, I am prepared with some hesitation to step away from custody and instead I will impose a community payback order as a direct alternative to custody.”
Sheriff Kooner ordered Corry to carry out a total 295 hours of unpaid work in the community.
In addition, Corry was made subject to supervision of the social work department for 12 months and was placed on a restriction of liberty order assessment for 81 days keeping him within his home address between 7pm and 6am each day.
A review hearing was set for August 18.
Download the FREE Renfrewshire Live app now for all the latest news, features and sport in your area. Available on both Android and Apple. D ownload here: smarturl.it/RenfrewLiveSocial