Arma 3 Scripting

setWaypointPosition

  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · original wiki page

Description

Attempts to move given waypoint to a random position inside a circle with the given center and radius. The waypoint will be placed similar to "NONE" attribute in setVehiclePosition, even if the radius is 0, which means it could still be off center. In order to force waypoint to the exact position, similar to "CAN_COLLIDE" attribute, use a negative radius (see Example 2).

Syntax

waypoint setWaypointPosition [center, radius]

Parameters:

Returns: Nothing

Examples

Example 1

[_grp, 2] setWaypointPosition [position player, 0];

Example 2

Exact placement using a negative radius and PositionASL:

_wp setWaypointPosition [getPosASL player, -1];

See also

waypointPosition · setWPPos · waypoints · deleteWaypoint · copyWaypoints · setCurrentWaypoint · setWaypointBehaviour · setWaypointCombatMode · setWaypointCompletionRadius · setWaypointDescription · setWaypointFormation · setWaypointHousePosition · setWaypointScript · setWaypointSpeed · setWaypointStatements · setWaypointTimeout · setWaypointType · setWaypointVisible · waypointAttachVehicle · waypointAttachedVehicle · setWaypointLoiterRadius · waypointLoiterRadius · addWaypoint · setWaypointLoiterType · waypointSpeed

Community notes

Killzone_Kid

If you want AI to understand height of the waypoint, for example set waypoint at the top of Military Cargo Tower, use Example 2 with position in ASL format and -1 radius.