35 lines
754 B
Plaintext
35 lines
754 B
Plaintext
Scriptname _00E_MQP01_CarbosSC extends ObjectReference
|
|
|
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
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()
|
|
; SE: We need this activator once anyway.
|
|
Self.Disable()
|
|
EndIf
|
|
|
|
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 |