Jump to content
Robustcolor

suppressFor command help

Recommended Posts

Hi, has anyone here figured out how to use this command properly?

 

supressFor = Force suppressive fire from the unit, will force soldier1 to do suppressive fire to known enemies during 10 seconds.

 

So that means the unit must know about the enemy its suppose to suppress, how can we accomplish that?

 

I want something like this below since i have an Ai group patrolling the area and if knowsAbout _target it will start suppressing it. doSuppressiveFire command is not what i'm after here.

if (_group knowsAbout _target > 0) then {
{
_x suppressfor getposASL _target 10;
}count units _group;
};

Do we need to reveal target first?

_group reveal [_target,4] ?

{_x reveal [_target,4]} count units_group;

 

or do we need something else, like doTarget?

{_x doTarget getposASL _target} count units_group;

Share this post


Link to post
Share on other sites

Yeah, seems to be the only option.This command is very sensitive if called to often or maybe i'm doing it wrong, but all the textures starts glitching then the game crashes.

So atleast some kind of delay between the calls for doSuppressiveFire is needed.

{
_x doSuppressiveFire getposASL _target;
} count (units _group);

Or

(units _group) doSuppressiveFire getposASL _target;

or maybe it's enough to make the leader of the group call the command? Does it affect rest of the group?

leader _group doSuppressiveFire getposASL _target;

 

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

×