---
name: "setTriggerTimeout"
type: command
status: ok
groups: ["Triggers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": "local", "server_exec": false}
source: https://community.bistudio.com/wiki/setTriggerTimeout
revid: 337985
updated: 2023-02-23T21:11:05Z
---

# setTriggerTimeout

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

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

## Description

Defines the time between condition satisfaction and trigger activation (randomly from min to max, with an average value mid). If the last argument is true, the condition must be fullfilled all the time.

For a normal trigger, *min*, *mid* and *max* are used to generate random duration according to [Gaussian Distribution](https://en.wikipedia.org/wiki/Normal_distribution) (ref: Technically, it is a rescaled [Bates distribution](https://en.wikipedia.org/wiki/Bates_distribution) with n = 4. The distribution is split in two at its midpoint and scaled linearly such that its maximum lies at the specified midpoint.). For a "Seized" type of trigger, the duration value is generated using side ruling power

## Syntax

```sqf
trigger setTriggerTimeout [min, mid, max, interruptable]
```

**Parameters:**

- `trigger`: [Object](../topics/Object.md)
- `min`: [Number](../topics/Number.md)
- `mid`: [Number](../topics/Number.md)
- `max`: [Number](../topics/Number.md)
- `interruptable`: [Boolean](../topics/Boolean.md)

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

## Examples

### Example 1

```sqf
_trigger setTriggerTimeout [5, 10, 7, false];
```

## See also

[triggerTimeout](../commands/triggerTimeout.md) · [triggerTimeoutCurrent](../commands/triggerTimeoutCurrent.md) · [createTrigger](../commands/createTrigger.md) · [setTriggerActivation](../commands/setTriggerActivation.md) · [setTriggerArea](../commands/setTriggerArea.md) · [setTriggerStatements](../commands/setTriggerStatements.md) · [setTriggerText](../commands/setTriggerText.md) · [setTriggerType](../commands/setTriggerType.md) · [triggerInterval](../commands/triggerInterval.md) · [setTriggerInterval](../commands/setTriggerInterval.md) · [enableSimulation](../commands/enableSimulation.md) · [simulationEnabled](../commands/simulationEnabled.md)

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