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.
 
 
 

41 lines
1.1 KiB

Scriptname _00E_FS_WSR_ValveScript extends ObjectReference
GlobalVariable Property _00E_FS_WSR_ValveVar Auto
ObjectReference Property _00E_FS_WSR_Steam1 Auto
ObjectReference Property _00E_FS_WSR_Steam2 Auto
ObjectReference Property _00E_FS_WSR_FahrstuhlREF Auto
Message Property _00E_FS_WSR_ValveMessage Auto
bool flip = false
bool doonce = true
Event OnActivate(ObjectReference akActionRef)
self.blockactivation(true)
if (_00E_FS_WSR_ValveVar.GetValue()==0 && doonce == true)
_00E_FS_WSR_ValveVar.SetValue(1)
_00E_FS_WSR_Steam1.enable()
doonce = false
if flip
self.playAnimationandWait("trigger02", "Trans02")
else
self.playAnimationandWait("trigger01", "Trans01")
endIf
flip = !flip
elseif (_00E_FS_WSR_ValveVar.GetValue()>0 && doonce == true)
_00E_FS_WSR_ValveVar.SetValue(2)
_00E_FS_WSR_Steam2.enable()
_00E_FS_WSR_ValveMessage.Show()
_00E_FS_WSR_FahrstuhlREF.disable()
doonce = false
if flip
self.playAnimationandWait("trigger02", "Trans02")
else
self.playAnimationandWait("trigger01", "Trans01")
endIf
flip = !flip
Endif
EndEvent