Jump to content
Sign in to follow this  
celery

Make AI blind to enemies?

Recommended Posts

I'm trying to make an AI squad run towards its destination without stopping even if it's under fire. I've added "Never fire" to the waypoint and disableAI "TARGET";disableAI "AUTOTARGET" to the units' init lines and even setCaptive true to the other side's soldiers and still they stop to aim at enemy troops when they're being shot at. How can I make them forget about everything else and concentrate on running?

Share this post


Link to post
Share on other sites
Maybe try setting Behaviour to "CARELESS" and Speed to "FULL"?

They still stop, and with careless they occasionally walk slowly with their weapons lowered.

Share this post


Link to post
Share on other sites

With small groups you could try limitSpeed or forceSpeed. Unfortunately "CARELESS" is one mode that insists on using formation "COLUMN". For large groups it takes a while to get organized until the start picking up speed.

On each waypoint:

{x limitSpeed 40} forEach units group this

If you shoot one of the members in the leg however, speedmode full seems to have no effect, as leader will slow down to his speed. So you might want to handle their damage while escaping.

It sucks not being able to control things yourself.

Share this post


Link to post
Share on other sites

EDIT: nevermind, was already mentioned.

Edited by Jelliz

Share this post


Link to post
Share on other sites

You could try:

create a new group for each squad member.

Then send them the movement orders and see what happens.

Join them back to the group when they get to destination.

Its the only way I could get them to move when I told them to with scripting commands.

Share this post


Link to post
Share on other sites

Or just temporarily group them to the enemy so they wont see their 'enemies' as enemies. If you still want them to be shot at you could use some invisible targets for the enemies i guess.

Share this post


Link to post
Share on other sites

Won't they see themselves as enemies and open up on eachother? Remember I tried something like that once and literally fell off my chair :D

Unfortunately invisible targets is something you need addons for.

Share this post


Link to post
Share on other sites
You could try:

create a new group for each squad member.

Then send them the movement orders and see what happens.

Join them back to the group when they get to destination.

Its the only way I could get them to move when I told them to with scripting commands.

Not quite the same but something close, I have a group with a waypoint on them set to dismissed and when they come under fire I have a trigger set to this.

{_x setbehaviour "careless";_x domove getpos glogic;_x dotarget glogic} foreach units grpname

They seem to still be grouped but ignore formation upto a point.

You need a game logic or something they can move to and target.

You may have to rejoin them when safe to do so.

One thing I would like to know is how to setformation dismissed as it only seems to work in waypoints.

.

Share this post


Link to post
Share on other sites
Won't they see themselves as enemies and open up on eachother? Remember I tried something like that once and literally fell off my chair :D

Unfortunately invisible targets is something you need addons for.

Well, not if you use invisible targets that arent enemies to anyone, yet you still script your enemies to shoot at them. And you could just use game logics i think.

Though its too much work for my taste. :p

Share this post


Link to post
Share on other sites

It sounds stupid, but put the AI in stealth mode and force them to stand with setUnitPos "UP". They will generally just sprint from cover to cover like this.

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  

×