desmills94 0 Posted October 18, 2018 can some one help me, i want a end game when all the ai are dead is there any script i can use or is it not as simple as this? Share this post Link to post Share on other sites
JohnKalo 657 Posted October 18, 2018 All AI dead condition can be tricky because if one AI runs away or gets stuck in a rock or in the ground then So, maybe you can try this one: east countSide thislist <= 5 set in the condition of a trigger. If 5 or lesser east units remain in the trigger area then you can have "whatever" activation you want. 2 Share this post Link to post Share on other sites
johnnyboy 3739 Posted October 19, 2018 @JohnKalo's advice is good. It is a problem going all the way back to OFP known as the "last loon" problem, where player can't end mission because he can't find some stupid AI that is stuck under a building or a rock. I use a <=3 condition for this. 1 Share this post Link to post Share on other sites
pierremgi 4736 Posted October 19, 2018 I'm using a script to avoid that. Take time to find safe position or delete the spawned stuck unit. Share this post Link to post Share on other sites
johnnyboy 3739 Posted October 19, 2018 34 minutes ago, pierremgi said: I'm using a script to avoid that. Take time to find safe position or delete the spawned stuck unit. How do you detect a stuck unit? A unit may be spawned or placed in editor in a good place (like in a street in a town), and later get stuck under a building or a rock. Share this post Link to post Share on other sites
pierremgi 4736 Posted October 19, 2018 Probably depending on modded maps. I can imagine the case at Kunduz (CUP terrain). I didn't experienced that for ages. Share this post Link to post Share on other sites
Gunter Severloh 3942 Posted October 29, 2018 The other option is to use a trigger that encompasses the area they are all in, set for the faction not present, and then have it end the mission through that. Share this post Link to post Share on other sites