33 lines
695 B
Plaintext
33 lines
695 B
Plaintext
|
Scriptname _00E_MQP01_CarbosSC extends ObjectReference
|
||
|
|
||
|
Event OnTriggerEnter(ObjectReference akActionRef)
|
||
|
|
||
|
If (akActionRef == _00E_MQ01_CarbosREF) && !(MQ01_SC4_Vision.IsActionComplete(31))
|
||
|
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()
|
||
|
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
|