enderalse/scripts/source/_00e_fs_wsr_buttonmottescr.psc

32 lines
941 B
Plaintext
Raw Normal View History

Scriptname _00E_FS_WSR_ButtonMotteScr 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() == 0)
MAGDestructionFireballExplosionM.Play(PlayerREF)
_00E_FS_FireMotte.enable()
_00E_FS_WSR_TiereVar.SetValue(1)
elseif (akActionRef == PlayerREF && _00E_FS_WSR_TiereVar.GetValue() == 4)
;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