enderalse/scripts/source/fxdustdroprandomscript.psc

58 lines
1.3 KiB
Plaintext

;/ Decompiled by Champollion V1.0.1
Source : fxDustDropRandomSCRIPT.psc
Modified : 2011-09-02 06:38:19
Compiled : 2013-02-13 20:17:10
User : builds
Computer : BUILDFARM09
/;
scriptName fxDustDropRandomSCRIPT extends ObjectReference
{Randomly fires the dust drop fx}
;-- Properties --------------------------------------
sound property mySFX auto
Explosion property FallingDustExplosion01 auto
;-- Variables ---------------------------------------
float rndWaitTimer
int chooser
bool on
;-- Functions ---------------------------------------
; Skipped compiler generated GotoState
; Skipped compiler generated GetState
Event OnCellDetach()
on = false
EndEvent
Event OnCellAttach()
If Self.Is3DLoaded()
on = true
EndIf
while on == true
chooser = utility.RandomInt(1, 3)
rndWaitTimer = utility.RandomFloat(10.0000, 30.0000)
utility.wait(rndWaitTimer)
if chooser == 1
self.PlayAnimation("PlayAnim01")
mySFX.play(self as ObjectReference)
utility.wait(0.500000)
self.placeAtMe(FallingDustExplosion01 as form, 1, false, false)
utility.wait(3 as float)
self.PlayAnimation("PlayAnim02")
elseIf chooser == 2
self.PlayAnimation("PlayAnim02")
mySFX.play(self as ObjectReference)
elseIf chooser == 3
self.PlayAnimation("PlayAnim03")
mySFX.play(self as ObjectReference)
endIf
endWhile
EndEvent