Jump to content
Sign in to follow this  
vapour

Trigger where resistance players are all present and also captive

Recommended Posts

Hi good gents.

 

I am sick of banging my head against a wall over a simple little script.

 

This is for an MP PvP mission where there are two resistance players (E1 and E2) and a bunch of  player blufor hunters.

I want a trigger to go off, which will essentially be the "win" trigger for blufor.

 

The trigger needs to go off when all resistance players are captive (because of ACE handcuffs) and present in a holding cell (represented by an area trigger).

 

A couple of things make this slightly tricky though. 

 

1) Sometimes there may be only one person playing as resistance, not necessarily two. If only one resistance player, the other resistance character  will not be present in the mission as AI either.

2) I don't want the trigger to go off if only one resistance guy is captured, as the other fella may be there to rescue him.

 

Issues I've encountered so far is that when captured, the script command "side" will register E1 and E2 as being civilian, not resistance -  so I've found faction _x == "IND_F" may be a good work around.

 

I have tried what feels like dozens of combinations to get this happening, but keep failing.

 

My best effort was a "Whole group" present trigger with This && (captive E1) && (captive E2) in the condition - but I'm not sure what will happen if there's only E1 or E2 being played.

 

I've tried lots of things like {captive _x && faction _x == "IND_F"} forEach player, but I usually get generic error messages and such.

 

Thoughts and problem solves welcome.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×