Arma 3 Scripting

expectedDestination

  • Local argument
  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · also in AI Behaviour · Markdown · JSON · original wiki page

Description

Return expected destination of unit as an array.

Syntax

expectedDestination person

Parameters:

Returns: Array with [destination, planningMode, forceReplan]

Examples

Example 1

_data = expectedDestination player;

See also

setDestination · getUnitState

Community notes

Donnervogel

For AI units I have found the following values: planningMode is "LEADER PLANNED" when the unit is ordered by the group leader to go somewhere or if the unit is the group leader and it follows a waypoint. Otherwise planningMode it is "DoNotPlan". Units moving in formation have "DoNotPlan" as long as they don't receive orders by the group leader. Units also have "DoNotPlan" when they don't move. Units executing special formation tasks like engaging or return to formation have "FORMATION PLANNED" as long they have not fulfilled the task.