Jump to content
Sign in to follow this  
_qor

Make unit not attack?

Recommended Posts

Is there a way to make a unit not to shoot enemy units?

So far I used enableAttack, but this only forbids the group leader to tell units to attack. They will still shoot the enemy.

DisableAI isnt capable as well, didnt it?

Share this post


Link to post
Share on other sites

this setCaptive true;

Will make no one shoot at him, and he won't shoot at anything either.

I think you can use disableAI to make him not shoot anything, but units will still shoot him. (untested)

this disableAI "TARGET"; this disableAI "AUTOTARGET";

Or remove all of his ammo.

Share this post


Link to post
Share on other sites

Yeah, nice. setCombatMode works so far =)

Share this post


Link to post
Share on other sites

To make a unit not attack I usually just apply two or three 5.56 to the cranial area of the unit. :)

Share this post


Link to post
Share on other sites
this setCaptive true;

Will make no one shoot at him, and he won't shoot at anything either.

That's incorrect; a captive unit will still engage enemy units, but nobody will engage him. Not even if he is killing multiple members of his own side.

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  

×