---
name: "behaviour"
type: command
status: ok
groups: ["AI Behaviour"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/behaviour
revid: 369334
updated: 2024-09-03T18:43:00Z
---

# behaviour

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

Locality: arguments **global**

## Description

Returns the behaviour of the individual unit, this is why it only accepts [Object](../topics/Object.md) as the argument. For Arma 3 behaviour explanation see Arma_3_AI_Behavior

## Syntax

```sqf
behaviour unit
```

**Parameters:**

- `unit`: [Object](../topics/Object.md)

**Returns:** [String](../topics/String.md) - one of:
- "CARELESS"
- "SAFE"
- "AWARE"
- "COMBAT"
- "STEALTH"
- "ERROR" (Since Arma 3 v1.78 when used on empty vehicles and such)

## Examples

### Example 1

```sqf
_soldier setBehaviour "CARELESS";
_b = behaviour _soldier; // returns "CARELESS"
```

## See also

AIBehaviour · [setBehaviour](../commands/setBehaviour.md) · [setWaypointBehaviour](../commands/setWaypointBehaviour.md) · [combatMode](../commands/combatMode.md) · [setCombatMode](../commands/setCombatMode.md) · [skill](../commands/skill.md) · [setSkill](../commands/setSkill.md) · Arma 3: AI Skill · [setCombatBehaviour](../commands/setCombatBehaviour.md) · [combatBehaviour](../commands/combatBehaviour.md)

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