Arma 3 Scripting

Command in Waypoints

getWPPos

Also available as Markdown and JSON, or read the original wiki page.

Description

Returns the position of a selected waypoint of a given group. Waypoints include only those which were placed in the mission editor.

Syntax

getWPPos [groupOrUnit, index]

Parameters:

Returns: Position3D - the returned position equals [0,0,0] if the selected waypoint does not exist.

Examples

Example 1

[_group1, 1] setWPPos [200,600,0];
_pos = getWPPos [_group1, 1]; // returns [200, 600, 0]

See also

setWPPos