Hospital security staff called the police after Shaun Kirwan produced a pair of scissors and threatened to slash his throat.
Minutes earlier he had warned he would “cut” them if they tried to take the scissors from him.
At Falkirk Sheriff Court the 47-year-old was placed on a supervised community order for 12 months and told to complete 120 hours unpaid work in nine months after admitting threatening to harm himself and others at Forth Valley Royal Hospital in Larbert on July 13.
The court was told Kirwan was at the hospital because his wife had been admitted earlier that day.
Defence lawyer Lynn Swan said: “He had found it a very stressful day which had not been helped by the fact he had taken a large amount of alcohol.
“He appreciates the court will take a dim view of his behaviour, particularly at this particular locus. He regrets it and fully appreciates the security guards were only doing their job.”
Mrs Swan said Kirwan is already serving a prison sentence for housebreaking and not due to be released until December.
She told the court: “He is keen to get home as soon as possible to look after his wife who is housebound after having an operation.”
Sheriff John Mundy said the community order will start the day he is released. And he warned Kirwan, from Cowane Street, Stirling: “Breach this order and the sentence will be anything up to nine months in prison.”