Enderal SE https://mod.pub/enderal-se/38-enderal-se
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.
41 lines
731 B
41 lines
731 B
3 years ago
|
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
|