---
name: "triggerActivated"
type: command
status: ok
groups: ["Triggers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/triggerActivated
revid: 352701
updated: 2024-02-18T16:52:51Z
---

# triggerActivated

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

Locality: arguments **global**

## Description

Returns true if the trigger has been activated.

## Syntax

```sqf
triggerActivated trigger
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
if (triggerActivated trg1) then { hint "trigger trg1 activated!" };
```

## Multiplayer

> [!IMPORTANT]
> The trigger could be [local](../topics/Multiplayer_Scripting.md#locality) or remote but the result returned by this command will be for the trigger activated status on the client that executed the command.
> See [createTrigger](../commands/createTrigger.md) for more information.

## See also

[setTriggerActivation](../commands/setTriggerActivation.md) · [triggerActivation](../commands/triggerActivation.md) · [triggerInterval](../commands/triggerInterval.md) · [setTriggerInterval](../commands/setTriggerInterval.md) · [enableSimulation](../commands/enableSimulation.md) · [simulationEnabled](../commands/simulationEnabled.md) · [createTrigger](../commands/createTrigger.md)

## Community notes

**MisterGoodson** — 2015-06-09

If the trigger already activated at least once, [triggerActivated](../commands/triggerActivated.md) will only return false if trigger is set to activate Repeatedly.

In other words, a trigger set to activate Once will always return true once activated at least once (even if trigger is no longer activated).

---

**Killzone_Kid** — 2020-08-13

The engine does not provide a precise way of detecting which player activated the trigger.
The trigger has a default [triggerInterval](../commands/triggerInterval.md) of ~0.5 seconds, so every half a second it checks if there is anyone in the zone.
There could be 100 people in the zone on the next scan, which one was the first? There is simply no data for this.
You can make an imprecise guess by taking 1st person from [thisList](../topics/Magic_Variables.md) or [list](../commands/list.md). Also you should do it on server only trigger.
This will still not guarantee that person first on the list is the one who was first to activate trigger, but on balance will probably be the one.

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