Can this be done?
Moderator: Moderators
Can this be done?
Working on an obj map. Can i do something like when all the allies cross over to one point, they win?
Live to map, not map to live.
-mohaa_rox, .map
moderator
-mohaa_rox, .map
moderator
Push city hall
You could also make it like push city hall. An allied play has to stay alive at the end point for a set amount of time to win.
I think you could make both work. If only one person needs to cross then you jsut need a trigger at the win point. Set up the script thread for the trigger and then within the thread do a team win.
If all players on a team need to cross you would need to loops through all the players and test if they had crossed based on their location (origin). Below is the basis of the script, I'm sure someone could correct this to be totally accurate as I don't know the exact syntax off the top of my head for everything needed
local.AllAlliesAcross = 1
for (local.i=1;local.i<=32;local.i++)
{
local.player = $player(local.i)
//presumably only alive players need to cross?
If ((local.player.dmteam) && (IsAlive(local.player)))
{
//this I'm not sure on, how do you get the x, y , z coords? this
//is what you really want to compare
If (player.origin < $mytrigger.origin)
{
local.AllAlliesAcross = 0
}
}
if (local.AllAlliesAcross == 1)
{
lnprint "Objective complete, all surviving allies have crossed the bridge"
TeamWin allies
}
}
If all players on a team need to cross you would need to loops through all the players and test if they had crossed based on their location (origin). Below is the basis of the script, I'm sure someone could correct this to be totally accurate as I don't know the exact syntax off the top of my head for everything needed
local.AllAlliesAcross = 1
for (local.i=1;local.i<=32;local.i++)
{
local.player = $player(local.i)
//presumably only alive players need to cross?
If ((local.player.dmteam) && (IsAlive(local.player)))
{
//this I'm not sure on, how do you get the x, y , z coords? this
//is what you really want to compare
If (player.origin < $mytrigger.origin)
{
local.AllAlliesAcross = 0
}
}
if (local.AllAlliesAcross == 1)
{
lnprint "Objective complete, all surviving allies have crossed the bridge"
TeamWin allies
}
}
[VS-UK]Capt.Parts[BnHQ]

