---
name: "combatMode"
type: command
status: ok
groups: ["Groups", "AI Behaviour"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/combatMode
revid: 379285
updated: 2026-10-30T23:46:10Z
---

# combatMode

*Command · Groups, AI Behaviour · Arma 3 v0.50 · introduced in Operation Flashpoint v1.00*

Locality: arguments **global**

## Description

Returns the combat mode of the given AI [group](../topics/Group.md). See [setCombatMode](../commands/setCombatMode.md) for more information about combat modes.

## Syntax

```sqf
combatMode group
```

**Parameters:**

- `group`: [Group](../topics/Group.md) or [Object](../topics/Object.md)

  - [Group](../topics/Group.md)
  - [Object](../topics/Object.md) of type [Unit](../topics/Object.md) - if the argument is unit [Object](../topics/Object.md), unit's current group is used.

**Returns:** [String](../topics/String.md) - one of:

- "BLUE"
- "GREEN"
- "WHITE"
- "YELLOW"
- "RED"
- "ERROR"

## Examples

### Example 1

```sqf
if (combatMode _grp1 == "BLUE") then {_grp1 setCombatMode "GREEN"};
```

## See also

[Combat Modes](../topics/Combat_Modes.md) · [setCombatMode](../commands/setCombatMode.md) · [behaviour](../commands/behaviour.md) · [setBehaviour](../commands/setBehaviour.md) · [skill](../commands/skill.md) · [setSkill](../commands/setSkill.md) · [Arma 3: AI Skill](../topics/AI_Skill.md) · [setUnitCombatMode](../commands/setUnitCombatMode.md) · [unitCombatMode](../commands/unitCombatMode.md) · [setCombatBehaviour](../commands/setCombatBehaviour.md) · [combatBehaviour](../commands/combatBehaviour.md)

## Community notes

**Ceeeb**

In **OFP v1.96**, combatMode return value does not change when unit's combat mode is set with radio commands, i.e troops under the player's command.

<sub>Source: [BI Community Wiki — combatMode](https://community.bistudio.com/wiki/combatMode) (revision 379285).</sub>
