Page 1 of 1

setthread triggering at spawn

Posted: Sat Mar 27, 2004 2:28 am
by fuhrer
couple of things, 1 my lift doors are opening at the spawn for some reason i cant figure out, all triggers are setthreads which i thought would not trigger til u triggered them lol. but the doors are opening at spawn


Code: Select all

level waittill spawn


//--------------//
// Lift Buttons //
//--------------//

1st:
	thread triggers_off
	thread close_doors
	waitthread
	$lift moveto $floor_1		// sets the lifts destination
	$lift loopsound lift_sound
	$lift waitmove			// moves the lift to that destination
	$lift loopsound lift_sound wait
	$1st_doors doopen
	$1st_doors playsound lift_gate
	thread triggers_on
end

also.....

the lift closes all doors when it moves, n i have a playsound in the script

Code: Select all

$1st_doors playsound lift_gate
	$1st_doors doclose
but i also have the sound in the editor for sound_close_start...

i cant remove either of these coz then there will be no sound upon close at some point, how do i stop the sound from triggering multiple times.

triggers

Posted: Sat Mar 27, 2004 2:59 am
by tltrude
First off, your trigger names probably don't match between the map and the script. If there is a waittill trigger line with no trigger in the map, it will skip the line and run the thread. That said, it could also be because you are adding a thread inside the "main" thread.

The "1st" thread should be below the end line of the main thread. It should be started with this line in the main thread--normally under "level waittill prespawn".

thread 1st

Door sounds -- If you want to change the sound a func_door plays, change the sound in its entity properties to "lift_gate" and remove the line in the script. You can give it "null.wav" sound names if you want to kill the normal sounds it uses.

Posted: Sat Mar 27, 2004 4:13 am
by nuggets
put

end

after

level waittill spawn

Posted: Sat Mar 27, 2004 10:06 pm
by fuhrer
i have killed the sounds of the doors in the properties winow already, except fot the close start sound which i have changed to lift_gate, so its not soundless if it closes by itself.

but when i tell the doors to close in the scipt, it doesnt play the sound thats in the properites, so i have to tell the script to play the sound.

in doing so playin the sound twice. :?