Containing elevator music to just the elevator.


(Apple) #1

How exactly does one do this?

I the elevator setup as a script_mover, and in my script file I have it set to loop my elevator music .wav file at spawn. The problem is that you can hear the music playing all throughout the area, even when the doors close or the elevator is on another level.


(Ifurita) #2

From the LDR/Speakereditor

broadcast
The choices are no, nopvs and global.
no - the speaker is subject to pvs, if you “walk around the corner” you will not be able to hear it anymore. Note that sound engine has no means of calculating obstruction, occlusion or reflection.
nopvs - the speaker is audible everywhere within it’s range, even if you can’t see it.
global - the speaker is audible everywhere on the map (e.g. the thunders on radar). Global sounds can’t be looped and ignore all other flags.


(Apple) #3

Right, but I’m not using a speaker. Since it needs to play in a script_mover while it’s moving I simply had the script_mover itself play the sound. I suppose I’ll try using a number of speakers along the path the elevator takes so at all times at least one is inside the car, and see how that works out for me.