You are on page 1of 1

 Yes there is.

Set a sound zone. Make it the shape you want.


Then LMB in the white center marker of it. and assign the sound file in spot 0.
And change the script to musiczone.
 Mission accomplished!! Using your advice, I was able to insert my own atmospheric
music to the game (after converting the file to .ogg file format) Thanks again for the
help.
 ADVANCED: If you are feeling brave you can edit the musicinzone.lua script and add
two new lines of code. The current code looks like this:

if g_Entity[e]['plrinzone']==1 then
LoopSound(e,0)
ActivateIfUsed(e)
end

And you would change it to look like this:

if g_Entity[e]['plrinzone']==1 then
LoopSound(e,0)
ActivateIfUsed(e)
else
StopSound(e,0)
end

As you can see, the moment the player leaves the zone, the sound associated with slot
0 will be instructed to stop.

You might also like