---
name: "setWaypointStatements"
type: command
status: ok
groups: ["Waypoints"]
arma3_since: "0.50"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/setWaypointStatements
revid: 377577
updated: 2026-01-02T06:56:32Z
---

# setWaypointStatements

*Command · Waypoints · Arma 3 v0.50 · introduced in Operation Flashpoint: Elite v1.00*

## Description

The waypoint is done only when the condition is fulfilled. When the waypoint is done, the statement expression is executed.

Within the Condition & Statement code string:
- [this](../topics/Magic_Variables.md#this_2) refers to the group leader
- [thisList](../topics/Magic_Variables.md#thislist) refers to the group's units

> [!IMPORTANT]
> The **Condition** code is evaluated on the [group owner](../commands/groupOwner.md)'s machine. When condition returns [true](../commands/true.md), for some strange reason, the condition is evaluated one more time. The **OnActivation** code is executed **[globally](../topics/Multiplayer_Scripting.md#locality)**, a.k.a on every client! See Waypoints.

## Syntax

```sqf
waypoint setWaypointStatements [condition, statement]
```

**Parameters:**

- `waypoint`: Waypoint
- `condition`: [String](../topics/String.md)
- `statement`: [String](../topics/String.md)

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

## Examples

### Example 1

```sqf
_waypoint setWaypointStatements ["true", "hint 'hello'; hint 'goodbye'"];
```

### Example 2

```sqf
_waypoint setWaypointStatements ["true", "diag_log ['GroupLeader: ', this]; diag_log ['Units: ', thislist]"];
```

## See also

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

## Community notes

**SilentSpike** — 2016-05-21

Within the completion statement [currentWaypoint](../commands/currentWaypoint.md) will give the index of the waypoint being completed (as opposed to the following one).

This is particularly useful if you need a self deleting waypoint:

```sqf
_waypoint setWaypointStatements ["true", "deleteWaypoint [group this, currentWaypoint group this]"]
```

---

**RHfront** — 2017-05-09

The condition block carries the same rules as functions which return a value.
The return value must be a [Boolean](../topics/Boolean.md).
One can bypass the use of triggers in this manner:

```sqf
_waypoint setWaypointStatements ["code code code; _returnBool", "onActivation block;"];
```

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