Page 1 of 1

On/Off a lamp when the "enemy" enter in perimeter

Posted: Thu Jun 02, 2005 3:46 pm
by mcunha98
In The Hunt map when we pass a specific region, a trigger show the message to axis about "Allies" entering in perimter of objective.

Into a Team DeathMatch map is possible create this process using two triggers, to alert for each side (allied/axis) it the enemy team enter in perimeter ?

Posted: Thu Jun 02, 2005 4:53 pm
by Axion
Just place a trigger multiple and give it the following key/value:

setthread - allied_perimeter

In your script, you would add this:

Code: Select all

allied_perimeter:
	
	 local.player = parm.other
	 if ( (local.player.dmteam != "axis") || (level.alliedperimeter_breached == 1) )
		end
		
	 iprintlnbold "The Axis have breached the perimeter!"
	 level.alliedperimeter_breached = 1 
end

Posted: Fri Jun 03, 2005 3:10 am
by mcunha98
Axion wrote:Just place a trigger multiple and give it the following key/value:

setthread - allied_perimeter

In your script, you would add this:

Code: Select all

allied_perimeter:
	
	 local.player = parm.other
	 if ( (local.player.dmteam != "axis") || (level.alliedperimeter_breached == 1) )
		end
		
	 iprintlnbold "The Axis have breached the perimeter!"
	 level.alliedperimeter_breached = 1 
end

Posted: Fri Jun 03, 2005 3:11 am
by mcunha98
Axion wrote:Just place a trigger multiple and give it the following key/value:

setthread - allied_perimeter

In your script, you would add this:

Code: Select all

allied_perimeter:
	
	 local.player = parm.other
	 if ( (local.player.dmteam != "axis") || (level.alliedperimeter_breached == 1) )
		end
		
	 iprintlnbold "The Axis have breached the perimeter!"
	 level.alliedperimeter_breached = 1 
end
Ok, but if per example i cant play a sound file, like alarm ???
What is the operator to play sound (i know the loopsound)

Posted: Sun Jun 05, 2005 6:52 pm
by agentmad007
entity loopsound alias = loop the sound
entity stoploopsound = stop the sound to loop

entity playsound alias = play the sound once