scriptName _00E_KeltyzarWellValveScpt extends ObjectReference bool property bidirectional = False Auto {Should the valve alternate directions with each activation? Default: False} bool flip = False ObjectReference Property RefName Auto Auto STATE Waiting EVENT onActivate (objectReference triggerRef) ObjectReference obj = RefName obj.enable() self.BlockActivation(true) if (flip) playAnimationandWait("trigger02","Trans02") Else playAnimationandWait("trigger01","Trans01") EndIf flip = !flip triggerRef.BlockActivation(false) endEVENT endState