maniczombie
New Member
I'm trying to create a script attached to Lydia that detects when she equips an iron helmet if she has a spell effect or not, but every if statement I use with a Actor Property (CurrentActor) in it does not work. The if statements always return as false.
What am I doing wrong? Please help..
Scriptname HelmetToggleScriptNPC extends ObjectReference
Actor Property CurrentActor Auto
Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
if CustomActor.IsEquipped(IronHelmet)
debug.messagebox("List")
HideHelmet()
else
debug.messagebox("No")
ShowHelmet()
endif
EndEvent
always returns Messagebox "No"
What am I doing wrong? Please help..
Scriptname HelmetToggleScriptNPC extends ObjectReference
Actor Property CurrentActor Auto
Event OnObjectEquipped(Form akBaseObject, ObjectReference akReference)
if CustomActor.IsEquipped(IronHelmet)
debug.messagebox("List")
HideHelmet()
else
debug.messagebox("No")
ShowHelmet()
endif
EndEvent
always returns Messagebox "No"