Jump to content
Sign in to follow this  
david-grylls

How do you test for Multiple Dead Players?

Recommended Posts

Recently I have been working on making a Team Death Match mini-game. However I want the mission to end when either all BLUFOR forces are killed or all OPFOR forces are killed. There are five players per team so I thought I could just do,

Condition:

!alive PN1; !alive PN2; !alive PN3; !alive PN4; !alive PN5

On ACT:

["Mission Complete",True] call BIS_fnc_endMission;

This did not work. I also tried in the condition;

!alive [PN1, PN2, PN3, PN4, PN5]

This too failed. I then tried setting it to

Activation: BLUFOR

Once

Not Present

Again this failed. Is their anyway I can test if the group of players is dead to therefore end the mission?

Thanks,

David Grylls

Share this post


Link to post
Share on other sites

You're nearly there:

!alive PN1 and !alive PN2 and !alive PN3 and !alive PN4 and !alive PN5

Share this post


Link to post
Share on other sites

...or:

{alive _x} count [PN1, PN2, PN3, PN4, PN5] == 0

:)

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  

×