Jump to content
Sign in to follow this  
besplatan

Units oblivious to firefights around them

Recommended Posts

I have a base with several groups moving through waypoints. What happens is when an enemy fires on one of the groups, only that group reacts, while those 20 meters away continue on like nothing is happening, even when there's a full-on firefight.

I assume there is some way to put separate groups into the same loop so they react realistically.

Share this post


Link to post
Share on other sites

The borg spotting only works if the AI units are in the same group. Exception is the group-waypoint, where another group can call an assistance from other group(s). A script can accomplish this as well by revealing the already revealed units to all AI units. Too tired to write one right now, but I guess someone has already made one.

Share this post


Link to post
Share on other sites

Something like this may help.

WaitUntil { SomeCondition; };

While {True} Do
  {
     {EnemyGroup reveal [_x, 1.7]} ForEach units MyGroup;
     Sleep 60;
  };

Share this post


Link to post
Share on other sites

Try WW AICOVER. Units react to nearby combat sounds by seeking cover etc.

Share this post


Link to post
Share on other sites

Thank you for your suggestions. I used reveal, it's a bit clunky but it works sort of.

Share this post


Link to post
Share on other sites
Thank you for your suggestions. I used reveal, it's a bit clunky but it works sort of.

Make sure you use value higher than 1.5, so the AI will also be able to determine the side. Well according to the wiki anyhow. You can also combine this with a domove command to make the units move to the position of the player or group leader.

Here's a shitty example.

WaitUntil { SomeCondition; };

While {True} Do
  {
     {EnemyGroup reveal [_x, 1.7]} ForEach units MyGroup;
     {_x DoMove GetPosATL (Leader MyGroup);} ForEach Units EnemyGroup;
     Sleep 60;
  };

Edited by Pac Man

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  

×