setDestination: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\| arma1 \|1.00 \|([^g]|g[^a])" to "| ofpe | 1.00 |game2= arma1 |version2= 1.00 |game3= arma2 |version3= 1.00 |game4= arma2oa |version4= 1.50 |game5= tkoh |version5= 1.00 |game6= arma3 |version6= 0.50 |$1")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * +\|p1=" to " |s1= $1 |p1=")
Line 38: Line 38:
Works best when used on [[agents]]. Using "LEADER PLANNED" will trigger <tt>"PathCalculated"</tt> [[Arma_3:_Event_Handlers#PathCalculated | Event Handler]]
Works best when used on [[agents]]. Using "LEADER PLANNED" will trigger <tt>"PathCalculated"</tt> [[Arma_3:_Event_Handlers#PathCalculated | Event Handler]]


| object '''setDestination''' [position, planningMode, forceReplan]
|s1=  object '''setDestination''' [position, planningMode, forceReplan]


|p1= object: [[Object]]
|p1= object: [[Object]]

Revision as of 23:23, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Unit Control

Syntax

Syntax:
object setDestination [position, planningMode, forceReplan]
Parameters:
object: Object
[position, planningMode, forceReplan]: Array
position: Array - format Position
planningMode: String
forceReplan: Boolean Specifies if replanning of the path should be forced.
Return Value:
Nothing

Examples

Example 1:
bob setDestination [screenToWorld [0.5,0.5], "LEADER PLANNED", true]

Additional Information

See also:
expectedDestinationdoMovecalculatePath

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