enderalse/scripts/source/_00e_mq11c_ryneussoundboxsc.psc

41 lines
731 B
Plaintext
Raw Normal View History

Scriptname _00E_MQ11c_RyneusSoundBoxSc extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
if akActionRef == PlayerREF && RyneusDead == False
Cough = _00E_MQ11c_RyneusIdleSickM.Play(MQ11c_RyneusRefReal)
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
if akActionRef == PlayerREF
StopCoughing()
EndIf
EndEvent
Function FlagRyneusAsDead()
RyneusDead = True
StopCoughing()
EndFunction
Function StopCoughing()
If Cough != 0
Sound.StopInstance(Cough)
Cough = 0
EndIf
EndFunction
int Property Cough Auto Hidden
bool Property RyneusDead Auto Hidden
Actor Property MQ11c_RyneusRefReal Auto
Sound Property _00E_MQ11c_RyneusIdleSickM Auto
Actor Property PlayerREF Auto