triggering "allies have breaced the perimeter" mes

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
blumaestro
Lance Corporal
Posts: 12
Joined: Sat Nov 12, 2005 12:20 am

triggering "allies have breaced the perimeter" mes

Post 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?
neillomax
Lieutenant General
Posts: 880
Joined: Thu Jun 23, 2005 6:57 am

Post 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.
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

message

Post 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".
Tom Trude,

Image
blumaestro
Lance Corporal
Posts: 12
Joined: Sat Nov 12, 2005 12:20 am

Post by blumaestro »

excellent explanation tltrude, many thanks!!
Post Reply