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.
24 lines
576 B
24 lines
576 B
ScriptName _00E_PlayBardMusicTrigScript extends ObjectReference
|
|
|
|
Function OnTriggerEnter(ObjectReference akActionRef)
|
|
|
|
if akActionRef == BardActor as ObjectReference
|
|
utility.Wait(3 as Float)
|
|
MusicPiece01 = MusicPiece.Play(BardActor as ObjectReference)
|
|
sound.SetInstanceVolume(MusicPiece01, 0.800000)
|
|
Playing = 1
|
|
endIf
|
|
|
|
EndFunction
|
|
|
|
Function OnTriggerLeave(ObjectReference akActionRef)
|
|
|
|
sound.StopInstance(MusicPiece01)
|
|
Playing = 0
|
|
|
|
EndFunction
|
|
|
|
actor property BardActor auto
|
|
Int property Playing auto
|
|
sound property MusicPiece auto
|
|
Int property MusicPiece01 auto |