Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Mortal-K

End trigger 3 way MP

Recommended Posts

Hi guys im having trouble with my end triggers for a 5vs5vs10 MP game,

I have 6 triggers, 3 linked to the squad leaders of each team which are:

Whole Group - Not Present - Type: None - On Activation: independant1 = true;

Whole Group - Not Present - Type: None - On Activation: blufor1 = true;

Whole Group - Not Present - Type: None - On Activation: opfor1 = true;

and the other 3 are the End triggers for the 3 different outcomes:

None - Present - Type: End #1 - Condition: Independant1 and opfor1

None - Present - Type: End #2 - Condition: Independant1 and blufor1

None - Present - Type: End #3 - Condition: blufor1 and opfor1

It works kind of but when two teamleaders of any side die the game ends, I want it to end when two whole teams die.

Is there an easy way to do this or can someone fix what I have?

Thanks

Share this post


Link to post
Share on other sites

You could name each unit like W1,W2 for blufor and E1,E2 for opfor ect then in blufor trigger condition do the follow for each sides trigger for every unit

!(alive W1) and !(alive W2)

Share this post


Link to post
Share on other sites
You could name each unit like W1,W2 for blufor and E1,E2 for opfor ect then in blufor trigger condition do the follow for each sides trigger for every unit

!(alive W1) and !(alive W2)

does that not meen when you start a MP mission with less than the max players it will fail to work?

Yea just tested it, that works if all teams start full but fails when teams start with less

---------- Post added at 17:06 ---------- Previous post was at 16:21 ----------

Is there a way to detect a Side within a Trigger rather than individuals? Like activate a trigger if Blufor is not present within an area?

Edited by Mortal-K
tested

Share this post


Link to post
Share on other sites

You can use the countSide command:

EAST countSide thisList; will only count how many of the units in the trigger area belong to the East (OPFOR) faction

Share this post


Link to post
Share on other sites
You can use the countSide command:

EAST countSide thisList; will only count how many of the units in the trigger area belong to the East (OPFOR) faction

Im not really sure how to set that up could you give me an example? would I put that in an "on activation" in a trigger and set it to look for a set number? or <=?

Thanks for your help

Share this post


Link to post
Share on other sites

Heh. Seems like I didn't read your last post before mine properly. To check if a specific side isn't in a trigger area you simply set the trigger to SIDE - Not Present,where 'side' is BLUFOR, OPFOR, Civilan or Independent. As soon as no more of the selected side is in that trigger area the trigger will become true (activate)

As for the countSide command you can use it in any field, depending on what you want it do. You could for example use it in the Condition field in the shape of ( EAST countSide thisList ) < (( WEST countSide thisList) / 2 ); to make the trigger activate when there is less than half as many OPFOR as there are BLUFOR.

Or you can use it in the On Activation (or Deactivation field) to count the numbers of one side when the trigger activates or deactivates. For example eastCount = EAST countSide thisList;. That way you can let something else (maybe a script, or other triggers) use the variable eastCount in some way.

Edited by Inkompetent

Share this post


Link to post
Share on other sites

great thanks for your help

It works, and it was so simple I feel like a total moron. =P

Edited by Mortal-K

Share this post


Link to post
Share on other sites
Sign in to follow this  

×