expectedDestination: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory\|[a-z]+[0-9]?\|Scripting Commands\}\}" to "")
m (Text replacement - " \| *(game[0-9]|version[0-9]|gr[0-9]|serverExec|mp|pr|descr|s[0-9]|p[0-9]{1,3}|r[0-9]|x1?[0-9]|seealso) *= +" to " |$1= ")
Line 22: Line 22:
|descr= Return expected destination of unit as an array.
|descr= Return expected destination of unit as an array.


|s1= '''expectedDestination''' person
|s1= '''expectedDestination''' person


|p1= person: [[Object]]
|p1= person: [[Object]]

Revision as of 23:04, 19 June 2021

Hover & click on the images for description

Description

Description:
Return expected destination of unit as an array.
Groups:
Unit Control

Syntax

Syntax:
expectedDestination person
Parameters:
person: Object
Return Value:
Array in form:
  • 0: Position
  • 1: planningMode
  • 2: forceReplan

Examples

Example 1:
_data = expectedDestination player;

Additional Information

See also:
setDestination

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note
Posted on 16:24, 3 March 2007 (CET)
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.