Talk:OnObjectEquipped - Actor
Jump to navigation
Jump to search
The note on this page is wrong; I have the following script attached to the reference alias of the Player, and it fires when using a hotkey just fine. I'm curious to know what caused this to be stated in the first place, maybe there's another set of circumstances that makes it true.
event OnObjectEquipped(Form akBaseObject, ObjectReference akReference) if akBaseObject as Weapon if akBaseObject == Axe01 || akBaseObject == dunHaltedStreamPoachersAxe if !Game.GetPlayer().IsInCombat() if !Game.GetPlayer().IsInInterior() WoodHarvestMenu() else _DE_WoodHarvestError1.Show() endif else _DE_WoodHarvestError2.Show() endif endif endif endEvent
--Chesko 10:24, 1 April 2012 (EDT)
- I think whoever put in the note got mixed up. I read about the problem on a thread in the BethSoft forums, and it was with the OnEquipped event (ie the one for the ObjectReference script) and not OnObjectEquipped. --Fg109 13:13, 1 April 2012 (EDT)
- I have removed the offending note. --Chesko
IsharaMeradin, I reverted your syntax fix because papyrus syntax is working again. Scrivener07 (talk) 2013-09-17T11:20:59 (EDT)