A Linlithgow man has been fined £500 and had a £200 weapon seized and destroyed by authorities.
Andrew McCracken, (25), from Linlithgow had been rough camping at Balquidder in Perthshire.
Police officers had received reports of firewood being stolen in the area and on carrying out investigations in the glen where the 18th century outlaw, Rob Roy MacGregor is buried, they saw McCracken.
When sighted by officers at Loch Voil he ran to a tent, where he then tried to hide a firearm which was inside.
The officers then saw McCracken picking up ammunition, and on checking the rifle found that it was loaded.
McCracken, of Braehead Drive, admitted having the gun in a public place without lawful authority or reasonable excuse.
Solicitor -advocate George Pollock, defending, told the court during the hearing on Tuesday: “He co-operated with police. My information is that he directed the police towards the tent.
“He is a forklift driver on a farm and the primary use of the air rifle is to control vermin on the farm.”
Sheriff Derek Livingston ordered that the air rifle and the ammunition be forfeited, in addition to imposing the fine of £500.
Police Scotland said that there was no evidence whatsoever that McCracken was involved in the allegation of thefts of firewood from the local area, and that no charges were brought in this respect against him.