Jump to content
Sign in to follow this  
camo1018

Making a group forget about its enemies

Recommended Posts

I'm trying to make an existing group forget about its enemies so when new units are spawned into the group, they will act as though they haven't encountered an enemy yet.

This is rather troublesome as reveal command only increases the knowsAbout value. Does anyone know a way I can achieve this?

Thanks for your help as always.

Share this post


Link to post
Share on other sites
Guest

Maybe try and set the enemies as captives:

unitname setcaptive true;

Then when your group is spawned:

unitname setcaptive false;

Might be best to wait for better soloutions by people who know more;)

Share this post


Link to post
Share on other sites

in patch 1.60 knowsabout command is altered to force a number, i think you could force 0 in knowsabout value, though wiki is not yet updated with 1.60 info, so youll need to roam the beta or RC topics for instructions.

i think it was something like this:

spotterName knowsAbout [targetName,0];

Share this post


Link to post
Share on other sites

I think your referring to the reveal command

spotterName reveal [targetName,0];

However you can only increase the reveal upto to 4 max but you can't force it lower.

It was mentioned at the time that it would be useful but never got any further.

Share this post


Link to post
Share on other sites
I think your referring to the reveal command
spotterName reveal [targetName,0];

However you can only increase the reveal upto to 4 max but you can't force it lower.

It was mentioned at the time that it would be useful but never got any further.

ye youre right, brainfart there :)

Share this post


Link to post
Share on other sites

It seems that deleting the group and creating a new one did what I wanted it to do.

Share this post


Link to post
Share on other sites

Talking about the new 1.60 reveal...

spotterName reveal [targetName,1.5];

This would be enough to reveal the side of targetName, but what value is needed to get a unit moving (engage) a target that got revealed to them ?

Or will they never actually move, just change to COMBAT mode ?

Share this post


Link to post
Share on other sites
Talking about the new 1.60 reveal...

spotterName reveal [targetName,1.5];

This would be enough to reveal the side of targetName, but what value is needed to get a unit moving (engage) a target that got revealed to them ?

Or will they never actually move, just change to COMBAT mode ?

They never go to attack enemy on themself. As you assumed they usually change to combat mode which makes them to take cover and move from cover to cover only. However they only react to what's spotted of course. If you are squadleader, make sure you told soldiers you want to attack to return to formation (1-1) or wait (1-7), then assign them target through 2 (targets) menu (2-2 for most priority one for example), then tell them to engage (3-4). They will break from formation to seek good place for engaging the target. If you want them to do automatically, tell them to engage at will (3-5). In case of AI leader, make sure group has "ENGAGE AT WILL" at waypoint properties.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×