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.
 
 
 

32 lines
941 B

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