2021-10-05 22:15:58 +00:00
|
|
|
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))
|
2021-10-05 22:15:58 +00:00
|
|
|
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()
|
2021-10-05 22:15:58 +00:00
|
|
|
EndIf
|
2021-10-05 22:22:24 +00:00
|
|
|
|
2021-10-05 22:15:58 +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
|