Page 1 of 1

triggering "allies have breaced the perimeter" mes

Posted: Mon Feb 05, 2007 5:17 pm
by blumaestro
Hi all, Id like to trigger the message above, in an OBJ map I?m working on.
I?ve had a look at the stock map `the hunt` and couldn?t see a trigger that an allied player would run through. I then had a look through the scr file from `hunt`, notably the `almost_there1`section. I?m lost. Is the message triggered `in game` by a player running over a trigger, which then calls the message from the script, or does mohaa calculate the allied players distance from the objective, and calls the `breached` message automatically?

Posted: Mon Feb 05, 2007 8:01 pm
by neillomax
If you looked at the map, I haven't recently, you should see the trigger brush. Can't miss it. Click on it and see if there is any information. There should also be something in the script if I'm not mistaken. Look for "Allies have breached the perimeter". Should all be together.

message

Posted: Mon Feb 05, 2007 8:15 pm
by tltrude
The trigger does not have the message, the script does. Everytime a player touches the trigger, the script runs this thread.


//==========================================
almost_there1:
// called by the trigger
local.player = parm.other // get the properties of the player that touched the trigger
if ( (local.player.dmteam != "allies") || (level.perimeter_breached == 1) ) // end if player's team is not allies, or the trigger has already been touched by an allied player
{
end
}
iprintlnbold "The Allies have breached the perimeter!"
level.perimeter_breached = 1 // set to triggered
end
//==========================================


The trigger is a trigger_multiple with this key/value.

Key: setthread
Value: almost_there1

Hope that helps!

Ps: The trigger is at the choke point. Turn on the View > Filters for "Clips" and "Vis".

Posted: Mon Feb 05, 2007 9:56 pm
by blumaestro
excellent explanation tltrude, many thanks!!