trouble activating target_speakers


(Mlehliw) #1

I have created a couple of doors controlled by remote devices. Everything works perfectly except the noise that is supposed to be playing while they are moving doesn’t.

I have a target_speaker for each. The key/values look like this:

classname target_speaker
spawnflags 34 (looped_off and no_pvs)
scriptname garagedoor2_sound
targetname garagedoor2_sound
noise sound/movers/misc/garage_door_loop_01.wav

It isn’t targeted to or by anything.

Here is a snippet of my script also.

   trigger open
	{
		wait 500
		playsound sound/movers/misc/garage_door_start_01.wav volume 127
		wait 350
		enablespeaker garagedoor2_sound
		gotomarker garagedoor2_pc1 17 wait
		disablespeaker garagedoor2_sound
		playsound sound/movers/misc/garage_door_end_01.wav volume 127
	}

[edit]

Nevermind I figured out that you can’t use target_speakers for this you have to use those umm other speakers.


(sock) #2

You need “alertentity” instead of “enablespeaker” script command. All speakers should be placed with the ingame speaker system as they can be changed without re-compiling the map each time. Check the Level Designer Reference (LDR) manual for the section on the ingame speaker system and how to use it.

Sock
:moo: