Arma 3 Scripting

setDestination

  • Local argument
  • Global effect
  • Arma 3 v0.50
  • First in Operation Flashpoint: Elite v1.00

Command · Markdown · JSON · 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