41 lines
1.1 KiB
Plaintext
41 lines
1.1 KiB
Plaintext
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 |