enderalse/scripts/source/_00e_fs_wsr_buttonschlangescr.psc

35 lines
1.0 KiB
Plaintext
Raw Normal View History

Scriptname _00E_FS_WSR_ButtonSchlangeScr extends ObjectReference
GlobalVariable Property _00E_FS_WSR_TiereVar Auto
ObjectReference Property _00E_FS_FireMotte Auto
ObjectReference Property _00E_FS_FireWolf Auto
ObjectReference Property _00E_FS_FireSchlange Auto
ObjectReference Property _00E_FS_FireEule Auto
Sound Property MAGDestructionFireballExplosionM Auto
Sound Property FXFireOut Auto
Actor Property PlayerREF Auto
Event OnActivate(ObjectReference akActionRef)
if(akActionRef == PlayerREF && _00E_FS_WSR_TiereVar.GetValue() == 1)
MAGDestructionFireballExplosionM.Play(PlayerREF)
_00E_FS_FireSchlange.enable()
_00E_FS_WSR_TiereVar.SetValue(2)
elseif (akActionRef == PlayerREF && _00E_FS_WSR_TiereVar.GetValue() == 4)
;donothing
elseif (akActionRef == PlayerREF && _00E_FS_WSR_TiereVar.GetValue() == 0)
;donothing
else
_00E_FS_WSR_TiereVar.SetValue(0)
FXFireOut.Play(PlayerREF)
_00E_FS_FireMotte.disable()
_00E_FS_FireWolf.disable()
_00E_FS_FireSchlange.disable()
_00E_FS_FireEule.disable()
endif
EndEvent