enderalse/source/scripts/_00e_playidletrigg.psc

36 lines
703 B
Plaintext
Raw Normal View History

Scriptname _00E_PlayIdleTrigg extends ObjectReference
Idle Property IdleToPlay Auto
Actor Property Actor01 Auto
Actor Property Actor02 Auto
Actor Property Actor03 Auto
Actor Property Actor04 Auto
Actor Property PlayerREF Auto
Sound Property LaughingSound Auto
Sound Property LaughingSound02 Auto
int doOnce
Event OnTriggerEnter(ObjectReference akActionRef)
while AkActionRef == PlayerREF && doOnce == 0
Actor01.PlayIdle(IdleToPlay)
Actor03.PlayIdle(IdleToPlay)
Actor04.PlayIdle(IdleToPlay)
LaughingSound.Play(Actor01)
Utility.Wait(13)
Actor02.PlayIdle(IdleToPlay)
LaughingSound02.Play(Actor02)
endwhile
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
doOnce =1
EndEvent