expectedDestination: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
(73 intermediate revisions by 14 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | |||
|game1= arma1 | |||
|version1= 1.00 | |||
|game2= arma2 | |||
|version2= 1.00 | |||
|game3= arma2oa | |||
|version3= 1.50 | |||
|game4= tkoh | |||
|version4= 1.00 | |||
|game5= arma3 | |||
|version5= 0.50 | |||
|arg= local | |||
|gr1= Unit Control | |||
|gr2= AI Behaviour | |||
|descr= Return expected destination of unit as an array. | |||
|s1= [[expectedDestination]] person | |||
|p1= person: [[Object]] | |||
|r1= [[Array]] in format [destination, planningMode, forceReplan] where: | |||
* destination: [[Array]] format [[PositionAGL]] | |||
* planningMode: [[String]] - can be one of: | |||
** "DoNotPlan" - used when not moving | |||
** "DoNotPlanFormation" - used in formation when simple path testing is used | |||
** "LEADER PLANNED" - used for formation leader (full path finding used) | |||
** "LEADER DIRECT" - used for DirectGo (like getin, supply) | |||
** "FORMATION PLANNED" - used in formation when full path finding is used | |||
** "VEHICLE PLANNED" - used for vehicle driver | |||
* forceReplan: [[Boolean]] - specifies if path replanning was forced (through [[setDestination]]) | |||
|x1= <sqf>_data = expectedDestination player;</sqf> | |||
|seealso= [[setDestination]] [[getUnitState]] | |||
}} | |||
{{Note | |||
|user= Donnervogel | |||
|timestamp= 20070303162400 | |||
|text= 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. | |||
}} |
Latest revision as of 14:16, 22 October 2024
Description
- Description:
- Return expected destination of unit as an array.
- Groups:
- Unit ControlAI Behaviour
Syntax
- Syntax:
- expectedDestination person
- Parameters:
- person: Object
- Return Value:
- Array in format [destination, planningMode, forceReplan] where:
- destination: Array format PositionAGL
- planningMode: String - can be one of:
- "DoNotPlan" - used when not moving
- "DoNotPlanFormation" - used in formation when simple path testing is used
- "LEADER PLANNED" - used for formation leader (full path finding used)
- "LEADER DIRECT" - used for DirectGo (like getin, supply)
- "FORMATION PLANNED" - used in formation when full path finding is used
- "VEHICLE PLANNED" - used for vehicle driver
- forceReplan: Boolean - specifies if path replanning was forced (through setDestination)
Examples
- Example 1:
Additional Information
- See also:
- setDestination getUnitState
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 Mar 03, 2007 - 16:24 (UTC)
- 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.
Categories:
- Scripting Commands
- Introduced with Armed Assault version 1.00
- ArmA: Armed Assault: New Scripting Commands
- ArmA: Armed Assault: Scripting Commands
- Arma 2: Scripting Commands
- Arma 2: Operation Arrowhead: Scripting Commands
- Take On Helicopters: Scripting Commands
- Arma 3: Scripting Commands
- Command Group: Unit Control
- Command Group: AI Behaviour