Arma 3 Scripting

Command in Unit Control, AI Behaviour

expectedDestination

Also available as Markdown and JSON, or read the 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.