---
name: "setTriggerStatements"
type: command
status: ok
groups: ["Triggers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setTriggerStatements
revid: 378812
updated: 2026-06-30T19:31:33Z
---

# setTriggerStatements

*Command · Triggers · Arma 3 v0.50 · introduced in Armed Assault v1.00*

Locality: arguments **global** · effect **local**

## Description

Defines trigger condition, activation and deactivation statements. Trigger condition has to return [Boolean](../topics/Boolean.md). [true](../commands/true.md) will activate the trigger, [false](../commands/false.md) will deactivate it (only if activation is set to repeat). [thisList](../topics/Magic_Variables.md) returns the same result as [list](../commands/list.md) command, which includes all entities in the trigger area that are capable of activating the trigger. Dead entities are excluded as well as crew in vehicles, vehicles themselves are included.

## Syntax

```sqf
trigger setTriggerStatements [condition, activation, deactivation]
```

**Parameters:**

- `trigger`: [Object](../topics/Object.md) - trigger object
- `condition`: [String](../topics/String.md) - code containing trigger condition. Special variables available here:
  - [this](../topics/Magic_Variables.md#this_2) ([Boolean](../topics/Boolean.md)) - detection event
  - [thisTrigger](../topics/Magic_Variables.md) ([Object](../topics/Object.md)) - trigger instance
  - [thisList](../topics/Magic_Variables.md) ([Array](../topics/Array.md)) - array of all detected entities
- `activation`: [String](../topics/String.md) - code that is executed when the trigger is activated. Special variables available here:
  - [thisTrigger](../topics/Magic_Variables.md) ([Object](../topics/Object.md)) - trigger instance
  - [thisList](../topics/Magic_Variables.md) ([Array](../topics/Array.md)) - array of all detected entities
  - [thisActivator](../topics/Magic_Variables.md) ([Object](../topics/Object.md)) Arma 3 v2.22 -  what or who activated the trigger, default: [thisTrigger](../topics/Magic_Variables.md)
- `deactivation`: [String](../topics/String.md) - code that is executed when the trigger is deactivated. Special variable available here:
  - [thisTrigger](../topics/Magic_Variables.md) ([Object](../topics/Object.md)) - trigger instance

**Returns:** [Nothing](../topics/Nothing.md)

## Examples

### Example 1

```sqf
_trg setTriggerStatements ["this", "hint 'trigger on'", "hint 'trigger off'"];
```

### Example 2

Since Arma 3 v2.22:

```sqf
_trg setTriggerStatements ["this", "hint ('Activated by ' + str thisActivator)", ""];
```

## See also

[triggerStatements](../commands/triggerStatements.md) · [createTrigger](../commands/createTrigger.md) · [setTriggerActivation](../commands/setTriggerActivation.md) · [setTriggerArea](../commands/setTriggerArea.md) · [setTriggerText](../commands/setTriggerText.md) · [setTriggerTimeout](../commands/setTriggerTimeout.md) · [setTriggerType](../commands/setTriggerType.md) · [Magic Variables](../topics/Magic_Variables.md) · [thisList](../topics/Magic_Variables.md) · [thisTrigger](../topics/Magic_Variables.md) · [triggerInterval](../commands/triggerInterval.md) · [setTriggerInterval](../commands/setTriggerInterval.md) · [enableSimulation](../commands/enableSimulation.md) · [simulationEnabled](../commands/simulationEnabled.md)

## Community notes

**Scifer** — 2011-03-14

An array with three arguments is mandatory for this function.

---

**Heeeere's Johnny!** — 2014-09-16

Magic variable *thisList* does not contain dead units.

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