Jump to content
Sign in to follow this  
Goro

Enemy overrun script

Recommended Posts

Heyy there! I need a script which will end mission instantly(With ending 2) when there are more than 40 EAST soldiers in trigger area/Marker area. Would it be possible?

Thanks in advance!

Share this post


Link to post
Share on other sites

Sure no problem with that.

 

 

Trigger:

 

OPFOR, Present

 

Condition: (east countSide thislist) >= 41;

 

OnAct: endMission "END2";

 

Add a countdown if you don't want it to seem too instant. Or a timeout if you want to give yourselves some chance to bring the number down again once it reaches above 40. Or if you need to check for it in the end of a script, remove the onact from the trigger and put it below "waituntil {triggeractivated triggername};" in the script

  • Like 1

Share this post


Link to post
Share on other sites

Trigger:

Anybody, Present, ONCE

Condition: this && ({alive _x && side _x == EAST} count thislist) >= 40

OnAct: "END2" call BIS_fnc_endMission;

This is giving just mission end if you want to fail mission change to:

OnAct: ["epicFail",false,2] call BIS_fnc_endMission;
  • Like 1

Share this post


Link to post
Share on other sites

Thanks guys! I'll check out both ways and see if it works.

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  

×