jandrews 116 Posted December 16, 2013 Hey all. Wondering if anyone has a link or idea to have trigger set to end mission once all enemy units are dead. I am using Opfor and AAF as allies. Thanks in advance. Share this post Link to post Share on other sites
Larrow 2821 Posted December 16, 2013 Cond. ((east countSide allUnits) + (independent countSide allUnits)) == 0 OnAct. ["end1",true,true] call BIS_fnc_endMission; OR set the trigger as type 'end #1' Share this post Link to post Share on other sites
jandrews 116 Posted December 16, 2013 (edited) this didnt work. any other ideas? ---------- Post added at 19:47 ---------- Previous post was at 19:46 ---------- this didnt work. any other ideas? I set up trigger for 50*50 radius , placed 1 opfor and 1 aff, killed them and no ending. Now I tried this in a trigger zone with the 2 units, however for the rest of the map there were plenty of other opfor/AAF units. I don't know if that would make a difference. Edited December 16, 2013 by JAndrews1 Share this post Link to post Share on other sites
pulstar 55 Posted December 17, 2013 In Arma2 I use the "not present" condition. Share this post Link to post Share on other sites
Alias001 10 Posted December 17, 2013 I suppose the cheap & clumsy way (IE: The way I usually do things because I'm a lazy sod) would be to have a trigger for opfor not present and on activation have something like "opforalldead = true", make a similar one for the AAF & then a third to fire with the condition opforalldead && aafalldead and have that work as the end trigger Share this post Link to post Share on other sites
jandrews 116 Posted December 17, 2013 I will just change it to opfor only in mission to make it more simple. So then could I just use 1 trigger stating "not present"? would I need a command on Actline? Share this post Link to post Share on other sites
Larrow 2821 Posted December 18, 2013 this didnt work. any other ideas? I set up trigger for 50*50 radius , placed 1 opfor and 1 aff, killed them and no ending. Trigger: axis: 0,0 type: none activation: none condition: ((east countSide allUnits) + (independent countSide allUnits)) == 0 OnAct: ["end1",true,true] call BIS_fnc_endMission; Works fine here! Share this post Link to post Share on other sites
jandrews 116 Posted December 18, 2013 I will try it without axis this time. No radius needed? Share this post Link to post Share on other sites