Arma 3 Scripting

Command in Unit Control

setDestination

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

Description

Set the destination for path planning of the pilot.

Possible values for planningMode are:

Works best when used on agents. Using "LEADER PLANNED" will trigger "PathCalculated" Event Handler

Syntax

object setDestination [position, planningMode, forceReplan]

Parameters:

Returns: Nothing

Examples

Example 1

bob setDestination [screenToWorld [0.5,0.5], "LEADER PLANNED", true];

See also

expectedDestination · doMove · calculatePath