---
name: "setTriggerType"
type: command
status: ok
groups: ["Triggers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setTriggerType
revid: 323090
updated: 2022-06-28T21:43:14Z
---

# setTriggerType

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

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

## Description

Sets the type of action processed by the trigger after activation (no action, a waypoints switch or an end of mission):

- `"NONE"`
- `"EAST G"` - Guarded by OPFOR - (It is better to use [createGuardedPoint](../commands/createGuardedPoint.md) instead)
- `"WEST G"` - Guarded by BLUFOR - (It is better to use [createGuardedPoint](../commands/createGuardedPoint.md) instead)
- `"GUER G"` - Guarded by Independent - (It is better to use [createGuardedPoint](../commands/createGuardedPoint.md) instead)
- `"SWITCH"` - Switch waypoints/break loop (see Triggers)
- `"END1"` - End #1
- `"END2"` - End #2
- `"END3"` - End #3
- `"END4"` - End #4
- `"END5"` - End #5
- `"END6"` - End #6
- `"LOOSE"` - (Meant to say LOSE but is misspelt in the game engine).
- `"WIN"` - (Not in editor. Valid enum name but when set, defaults to `"END1"`)

## Syntax

```sqf
trigger setTriggerType action
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_trigger setTriggerType "END1";
```

## See also

[triggerType](../commands/triggerType.md) · [createTrigger](../commands/createTrigger.md) · [setTriggerActivation](../commands/setTriggerActivation.md) · [setTriggerArea](../commands/setTriggerArea.md) · [setTriggerStatements](../commands/setTriggerStatements.md) · [setTriggerText](../commands/setTriggerText.md) · [setTriggerTimeout](../commands/setTriggerTimeout.md) · [createGuardedPoint](../commands/createGuardedPoint.md) · [triggerInterval](../commands/triggerInterval.md) · [setTriggerInterval](../commands/setTriggerInterval.md) · [enableSimulation](../commands/enableSimulation.md) · [simulationEnabled](../commands/simulationEnabled.md)

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