Jump to content
Sign in to follow this  
Toasticuss

Make Squad AI Smarter?

Recommended Posts

At the end of a mission I am making I have an extraction helicopter. Problem is that when I get there the AI are waaaaaaaaaay behind and take forever to get to it so it can take off. I have heard of some combat mode they go into when they see an enemy and that makes them take longer to move to places so I guess they get stuck in that when the evac helicopter has arrived. Is their a way to take that off when the chopper arrives or something?

Is their anything to prevent that in vanilla OA? Or would I need a mod to fix that?

Share this post


Link to post
Share on other sites

You could create a trigger that sends the AI into "Aware" mode when the chopper is within a certain distance. Or you could give them no target and force them into aware mode if you're leading the group.

Share this post


Link to post
Share on other sites
You could create a trigger that sends the AI into "Aware" mode when the chopper is within a certain distance. Or you could give them no target and force them into aware mode if you're leading the group.

Okay that sounds good, let me try it out.

This is the code I am using once I reach the objective that calls the helicopter at the trigger for anyone that wants to know

unitname setBehaviour "aware";

---------- Post added at 08:31 PM ---------- Previous post was at 08:25 PM ----------

It had no effect on them :( Almost seems like it made them worse.

Edited by Toasticuss

Share this post


Link to post
Share on other sites

Its because they spot enemies and go directly into combat mode. You could try

unitname setBehaviour "Safe";

Or if you dont want them to engage the enemy at all, you could use these drastic commands.

{_x disableAI "TARGET"} foreach units group unitname; {_x disableAI "AUTOTARGET"} foreach units group unitname;
(beware that this leaves them with no option to defend themselves)

Share this post


Link to post
Share on other sites
Its because they spot enemies and go directly into combat mode. You could try

Or if you dont want them to engage the enemy at all, you could use these drastic commands. (beware that this leaves them with no option to defend themselves)

Okay if I set a trigger for them to go into safe mode would they stay in safe mode or would it go back to combat mode after they saw another enemy again?

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
Sign in to follow this  

×