Jump to content

Recommended Posts

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

All AI dead condition can be tricky because if one AI runs away or gets stuck in a rock or in the ground then         :smash:

 

 

 

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.

  • Like 2

Share this post


Link to post
Share on other sites

@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.

  • Like 1

Share this post


Link to post
Share on other sites

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
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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×