Actor Property Not Working - Script Help

  • Welcome to Skyrim Forums! Register now to participate using the 'Sign Up' button on the right. You may now register with your Facebook or Steam account!

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"
 

Recent chat visitors

Latest posts

Top