Hey there!
I'm trying to find out why my script isn't working! Can anyone please help?
vmWaterValveOpen is a short int global variable, that I've created in the object window, under misc/global.
The activator is a dwemer valve.
The error message is: required (...)+ loop did not match anything at input ','
Scriptname VanaheimWaterValve extends ObjectReference {The Water Valve governing script}bool property bidirectional = True Auto{Should the valve alternate directions with each activation? Default: True}bool flip = FalseAuto STATE Waiting EVENT onActivate (objectReference triggerRef) self.BlockActivation(true) if (flip) playAnimationandWait("trigger02","Trans02") SetValueInt.vmWaterValveOpen(1) Else playAnimationandWait("trigger01","Trans01"), SetValueInt.vmWaterValveOpen(0) EndIf flip = !flip self.BlockActivation(false) endEVENTendState
Thanks so much!