Arma 3 Scripting

currentWaypoint

  • Arma 3 v0.50
  • First in Arma 2 v1.00

Command · Markdown · JSON · original wiki page

Description

Returns the index of the current waypoint (not the waypoint in Waypoint Array format).

By default, a group has one already-completed waypoint at their starting position, making the first waypoint number one, not zero.

Syntax

currentWaypoint groupName

Parameters:

Returns: Number - index of the current waypoint

Examples

Example 1

_index = currentWaypoint group player;

Example 2

_waypointFormat = [_group, currentWaypoint _group];

See also

waypoints · setCurrentWaypoint