Jump to content
Sign in to follow this  
ImStereotype

Trigger to end mission when 1 player is left alive.

Recommended Posts

I am creating a simple Free For All mission and was curious if there is an "init" command I can put in a trigger to end the mission when 1 player is left alive.

Thanks in advance.

Share this post


Link to post
Share on other sites

waitUntil {(count allUnits) <= 1};
endMission "END1";

Put this in an external script executed via init.sqf.

Trigger version:

Condition: (count allUnits) <= 1

Trigger Type: End #1

Set to Anybody, present. Repeatedly aswell.

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  

×