---
name: "triggerType"
type: command
status: ok
groups: ["Triggers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/triggerType
revid: 339279
updated: 2023-04-28T14:02:49Z
---

# triggerType

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

Locality: arguments **global**

## Description

Returns the trigger type.

> [!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 type set up locally on the client that executed the command.
> See [createTrigger](../commands/createTrigger.md) for more info.

## Syntax

```sqf
triggerType trigger
```

**Parameters:**

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

**Returns:** [String](../topics/String.md) - can be one of the following (see [setTriggerType](../commands/setTriggerType.md) for details):
- `"NONE"`
- `"EAST G"`
- `"WEST G"`
- `"GUER G"`
- `"SWITCH"`
- `"END1"`
- `"END2"`
- `"END3"`
- `"END4"`
- `"END5"`
- `"END6"`
- `"LOOSE"`
- `"WIN"`
Can return `"ERROR"` in case of an invalid trigger type (due to Mission.sqm manual edit or other type of data corruption)

## Examples

### Example 1

```sqf
_type = triggerType tr1;
```

## See also

[setTriggerType](../commands/setTriggerType.md)

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