{"name":"BIN_fnc_findPath","operator":null,"title":"BIN fnc findPath","type":"function","url":"https://community.bistudio.com/wiki/BIN_fnc_findPath","revid":309455,"updated":"2022-05-05T12:06:03Z","groups":["Movement"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.94"}],"since":{"game":"arma3","name":"Arma 3","version":"1.94"},"arma3_since":"1.94","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"A* search algorithm. Uses hard-coded Manhattan distance to measure distance.\n\n> [!NOTE]\n> This content is exclusive to the Arma 3 Contact Expansion.","syntaxes":[{"syntax":"[param0, param1, param2] call BIN_fnc_findPath","since":null,"effect":null,"exec":null,"params":[{"name":"param0","type":"Array","types":["Array"],"optional":false,"default":null,"description":"0: NUMBER - node cost\n1: ARRAY - array of neighbor indexes\n2: ARRAY - XYZ position of the node, used to measure distance from end pos","since":null,"text":"0: ARRAY of ARRAYs in format:\n0: NUMBER - node cost\n1: ARRAY - array of neighbor indexes\n2: ARRAY - XYZ position of the node, used to measure distance from end pos","source":"docblock"},{"name":"param1","type":"Number","types":["Number"],"optional":false,"default":null,"description":"index of starting point","since":null,"text":"1: NUMBER - index of starting point","source":"docblock"},{"name":"param2","type":"Number","types":["Number"],"optional":false,"default":null,"description":"index of ending point","since":null,"text":"2: NUMBER - index of ending point","source":"docblock"}],"returns":{"type":"Array, Number","types":["Array","Number"],"description":null,"text":"ARRAY of NUMBERs - indexes of nodes which are traversed on the way to the ending point","source":"docblock"},"inferred":true}],"examples":[],"multiplayer":null,"problems":null,"aliases":[],"see_also":[],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Movement","Functions","Introduced with Arma 3 version 1.94"],"docblock":{"author":null,"description":"A* search algorithm. Uses hard-coded Manhattan distance to measure distance.","params":[{"index":0,"name":null,"types":["Array"],"optional":false,"default":null,"description":"0: NUMBER - node cost\n1: ARRAY - array of neighbor indexes\n2: ARRAY - XYZ position of the node, used to measure distance from end pos","text":"ARRAY of ARRAYs in format:\n0: NUMBER - node cost\n1: ARRAY - array of neighbor indexes\n2: ARRAY - XYZ position of the node, used to measure distance from end pos"},{"index":1,"name":null,"types":["Number"],"optional":false,"default":null,"description":"index of starting point","text":"NUMBER - index of starting point"},{"index":2,"name":null,"types":["Number"],"optional":false,"default":null,"description":"index of ending point","text":"NUMBER - index of ending point"}],"returns":{"types":["Array","Number"],"text":"ARRAY of NUMBERs - indexes of nodes which are traversed on the way to the ending point"},"examples":[],"syntax":null,"execution":null,"notes":null,"requirements":null,"meta":{},"text":"Description:\nA* search algorithm.\nUses hard-coded Manhattan distance to measure distance.\n\nParameter(s):\n    0: ARRAY of ARRAYs in format:\n        0: NUMBER - node cost\n        1: ARRAY - array of neighbor indexes\n        2: ARRAY - XYZ position of the node, used to measure distance from end pos\n    1: NUMBER - index of starting point\n    2: NUMBER - index of ending point\n\nReturns:\nARRAY of NUMBERs - indexes of nodes which are traversed on the way to the ending point"},"filled_from_docblock":["params","syntax","returns","description"]}