enderalse/scripts/source/_00e_mqp01_carbossc.psc

35 lines
754 B
Plaintext
Raw Normal View History

Scriptname _00E_MQP01_CarbosSC extends ObjectReference
Event OnTriggerEnter(ObjectReference akActionRef)
2021-10-05 22:22:24 +00:00
If (akActionRef == _00E_MQ01_CarbosREF) && !(MQ01_SC4_Vision.IsActionComplete(2))
Utility.Wait(3)
iLuteSong = _00E_MQ01_CarbosLuteMusicM.Play(_00E_MQ01_CarbosREF)
Sound.SetInstanceVolume(iLuteSong, 0.800000)
EndIf
EndEvent
Event OnTriggerLeave(ObjectReference akActionRef)
If akActionRef == _00E_MQ01_CarbosREF
StopSong()
2021-10-05 22:22:24 +00:00
; SE: We need this activator once anyway.
Self.Disable()
EndIf
2021-10-05 22:22:24 +00:00
EndEvent
Function StopSong()
Sound.StopInstance(iLuteSong)
EndFunction
Int Property iLuteSong Auto Hidden
Sound Property _00E_MQ01_CarbosLuteMusicM Auto
Actor Property _00E_MQ01_CarbosREF Auto
Scene Property MQ01_SC4_Vision Auto