Jump to content
Andipalle

AI Spot distance

Recommended Posts

While i was creating a scenario i noticed that when i tested it, the first thing i head was "Contact enemy soldier" and the closest enemy was like 2.1 km away. How do i fix this?

Share this post


Link to post
Share on other sites

Thx, never scripted before ;) but its just that when some of my men says "contact" they begin to move slowly

 

I will try it out later

Share this post


Link to post
Share on other sites

That solution won't stop the units from moving slower, it'll just stop you hearing the report :)

 

I'd suggest lowering the spot distance of the units, or adding some fog.

Share this post


Link to post
Share on other sites
12 minutes ago, dmarkwick said:

That solution won't stop the units from moving slower, it'll just stop you hearing the report :)

disableAI may "force" group commander to stop assigning the targets..

Share this post


Link to post
Share on other sites
{_x disableAI "AUTOCOMBAT"} forEach units(group this);

Paste in init field of the squad leader. It prevents soldiers from going automatically into Combat Mode.

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

×