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?
triggering "allies have breaced the perimeter" mes
Moderator: Moderators
-
blumaestro
- Lance Corporal
- Posts: 12
- Joined: Sat Nov 12, 2005 12:20 am
message
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".
//==========================================
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".
-
blumaestro
- Lance Corporal
- Posts: 12
- Joined: Sat Nov 12, 2005 12:20 am
