Search the Community
Showing results for tags 'enemy destroyed'.
Found 1 result
-
HELP: Making OPFOR surrender (when decimated).
alezil posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
So, i was tryng to make the AI (opfor) present in the entire level surrender when their total force is reduced to below 10 alive. So in the "On condition" space on the trigger configuration, I inserted the code below: ({alive _x && side _x == east} count thisList) < 10 The "on condition" part above works fine, if i select end#1 and kill some of the enemy. in other topic (from 3 years ago), someone gave a solution to a similar problem with a code that goes like this: ["({(side _x) == east} count allUnits) <= 10", "{if(side _x == east) then { _x playMoveNow 'AmovPercMstpSsurWnonDnon'; _x disableAI 'ANIM'; _x setCaptive true;}} foreach allUnits; win = true;", ""]; So i tried to insert that in the "On activation space" only this part: "{if(side _x == east) then { _x playMoveNow 'AmovPercMstpSsurWnonDnon'; _x disableAI 'ANIM'; _x setCaptive true;}} foreach allUnits; win = true;", ""]; I tried understand the mistake and change some brackets or inserting the original code, and i still get a error (more common one is "on activation missing"). And of course, it doesn't work because i really dont know what i am doing. I not sure if i am making a mistake on the On condition and on activation spaces and how this sections work or is some brackets that i leave behind. (I cannot find a surrender module o A3 either) If someone could help. The original post of 2013. https://forums.bistudio.com/topic/158387-how-to-entire-side-surrender/?hl=surrender Ps- Sorry for the bad english.