ckolonko 0 Posted May 11, 2008 Hi, I need some help. I'm making a mission in which you have to ambush an insurgent force. However, i want it so that the objective is met when you kill a certain number of the group. not necesarily the whole lot. Also i want the unit to retreat to a certain waypoint once they get attacked. Share this post Link to post Share on other sites
Pirin 0 Posted May 11, 2008 You can use a trigger for the objective part at least. Set up a trigger that covers your ambush area. Set it to Activation OPFOR, Repeatedly, Present. In the Condition put: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> count thislist <= 5 and in the On Act. put: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"> "0" objStatus "DONE"; obj0_done = true; Of course changing the 5, "0", and objX_done to match the proper amount of enemies left and objective order you wanted. If you set this trigger as a Switch Type and Synchronize it with your Cycle Waypoint, it'll break the enemy out of their patrol pattern and make them head to the next waypoint. Share this post Link to post Share on other sites
ckolonko 0 Posted May 12, 2008 Thanks i'll give it a try. Yeh it worked. thanks Just one more question: When i was making missions in ofp i used a command that was like if notAlive=true etc etc then a command something like AND OR that meant that i could have an objective which was triggered when i killed either one enemy or 2 how do i do this in ArmA? Share this post Link to post Share on other sites