---
name: "triggerText"
type: command
status: ok
groups: ["Triggers"]
arma3_since: "0.50"
locality: {"argument": "global", "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/triggerText
revid: 319934
updated: 2022-05-13T09:25:45Z
---

# triggerText

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

Locality: arguments **global**

## Description

Returns trigger text.

## Syntax

```sqf
triggerText trigger
```

**Parameters:**

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

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

## Examples

### Example 1

```sqf
_text = triggerText triggerName;
```

## Multiplayer

The trigger could be [local](../topics/Multiplayer_Scripting.md#locality) or remote but the result returned by this command will be for the trigger text set up locally on the client that executed the command. See [createTrigger](../commands/createTrigger.md) for more info.

## See also

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

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