Page MenuHomeFeedback Tracker

setUnitCombatMode is being overridden by Group Leaders orders.
New, NormalPublic


When using

this setUnitCombatMode "BLUE";

on a group of AI and they become under fire. The group leader is giving the "Open Fire" command making the AI.. well open fire, ignoring the "NEVER FIRE, KEEP FORMATION"
also happens on GREEN and WHITE modes.


Operating System
Windows 10
Operating System Version
AI Issues
Steps To Reproduce
  1. Place 2 groups of AI (blufor vs opfor)
  2. Set the BLUFOR group on setUnitCombatMode "BLUE";
  3. make both groups of AI allowDamage false.
  4. place down a civ (PLAYER) to observe
  5. PREVIEW and watch the BLUFOR group start firing straight away.
Additional Information

Arma Version 2.02 STABLE

Attached is a repo mission (NO MODS REQUIRED)

Event Timeline

tyl3r99 created this task.Feb 28 2021, 9:23 AM

I have put Category as "AI Issues" as I was not sure if its down to the scripting or the AI that breaks the command.

tyl3r99 added a comment.EditedFeb 28 2021, 9:47 AM

Also trying

they are ignoring all these commands even when used together. They Open Fire.

Setting group on careless stops them from firing, but Ideally would be great if set unit combat mode BLUE would work regardless of their mode (aware, combat, safe, careless)

Just to add some more info
I know

this setCombatMode "...";

Will set the entire group on that mode, and this works. However I want to use the setUnitCombatMode because I want specific units to stop firing not the entire group.
With the repo attached I did also try only giving 2 out of the 4 units this command however they still open fire.

I spoke to Leopard from the discord in the Scripting channel and he confirmed its a valid issue.