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.

23 lines
572 B

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