OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting Multiplayer => Topic started by: Nim_Editor on 12 Sep 2003, 11:15:45

Title: 3 Teams when to 2 are dead i want it to end how do i do this?
Post by: Nim_Editor on 12 Sep 2003, 11:15:45
i have 3 teams west east and resistance say east and west die how do i make it end??
Title: Re:3 Teams when to 2 are dead i want it to end how do i do this?
Post by: SickSidewinder on 12 Sep 2003, 20:01:09
should be something along the lines of
!(alive side ____) && !(alive side ____)
i think
the "!" means "not"
u can use that too
[edit]
and unless someone knows a better way, you'd have to do that trigger in all the combos of sides dead and alive
Title: Re:3 Teams when to 2 are dead i want it to end how do i do this?
Post by: Terox on 12 Sep 2003, 23:03:55
check the comref for the exact command but i think the best to use is
count array or count trigger list

create a trigger for each side, lets name them
westplayers
eastplayers

have the trigger areas encompass the entire playing area, set them to repeatedly and anybody

in the condition fields have
(vehicle player in thislist) && (side player==WEST) && alive player
or
(vehicle player in thislist) && (side player==EAST) && alive player

then have a looping script or a script waiting with an @ command for something like the following command

@ (count list westplayers == 0) && (count list eastplayers == 0)

or maybe even an endgame trigger with the following condition line
 (count list westplayers == 0) && (count list eastplayers == 0)

then have these execute your endmission stystem