4
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
474 B

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