calculatePath: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 13: Line 13:
____________________________________________________________________________________________
____________________________________________________________________________________________


| calculatePath [startCoordinates, endCoordinates, typeName, behaviour] |Description=
| Spawns an agent that will execute a AI path calculation and fire the PathCalculated eventhandler. |Description=
____________________________________________________________________________________________
____________________________________________________________________________________________


| SYNTAX |Syntax=
| calculatePath [startCoordinates, endCoordinates, typeName, behaviour] |Syntax=


|p1= startCoordinates: [[Array]] - Start position in [x,y,z] |Parameter 1=
|p1= startCoordinates: [[Array]] - Start position in [x,y,z] |Parameter 1=

Revision as of 22:06, 19 April 2019

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.93|1.93]]
Hover & click on the images for description

Description

Description:
Spawns an agent that will execute a AI path calculation and fire the PathCalculated eventhandler.
Multiplayer:
-
Groups:
Uncategorised

Syntax

Syntax:
calculatePath [startCoordinates, endCoordinates, typeName, behaviour]
Parameters:
startCoordinates: Array - Start position in [x,y,z]
endCoordinates: Array - End position in [x,y,z]
typeName: String - Vehicle type to simulate. One of ("helicopter", "plane", "man", "car', "wheeled_APC", "tank", "boat")
behavior: String - AI behaviour. one of ("CARELESS", "SAFE", "AWARE", "COMBAT" and "STEALTH")
Return Value:
Object - Agent to add the PathCalculated eventhandler to.

Examples

Example 1:
calculatePath ["car","safe",[2150.67,5778.19,0],[2184.11,5802.28,0]]

Additional Information

See also:
setDriveOnPath

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

[[Category:Introduced with arma3dev version 1.93]][[ Category: arma3dev: New Scripting Commands | CALCULATEPATH]][[ Category: arma3dev: Scripting Commands | CALCULATEPATH]]

Bottom Section