Path finding API, used by other plugins only. This plugin can only be used by other plugins.
A* Pathfinding algorithm 3D => example of how the 2D works
Max Loops being the max loops allowed before the plugin timesout (500 is about 0.15s, 1000 around 0.4s and 5000 around 2s).
return the list of Vector3 accessible or null if no path was found, uses the A* algorithm.
Return the list of Vector3 accessible or null if no path was found, uses the Easy Path.
Force an entity to follow the pathpoints, can be a BasePlayer.
Finds the best path then forces the entity to follow the pathpoints, can be a BasePlayer.
- It only takes in count coordinates such as: 241, 54, 2340.
- No decimals. (using decimals makes the code go crazy slow).
- You can easily call this plugin from other plugins.
- The plugin is limited to 500 Loops, higher then that it will result as null (meaning no paths were found).
- 1000 Loops is about 0.3s of search. 500Loops is about 0.06s200m on the ground will be around 200LoopsBut if you use it in houses with multiple levels, loops will occur much more (work is probably still needed on that).
A* Pathfinding algorithm 3D => example of how the 2D works
Chat Commands
- /path -- Aim where you want to go, and the plugin will try to force you to go there
Configuration
The settings and options can be configured in the PathFinding file under the config directory. The use of an editor and validator is recommended to avoid formatting issues and syntax errors.Max Loops being the max loops allowed before the plugin timesout (500 is about 0.15s, 1000 around 0.4s and 5000 around 2s).
Developer API
Return the list of Vector3 accessible or null if no path was found. This uses the Easy path first, and if it can't use the easy path, uses the A* algorithm.return the list of Vector3 accessible or null if no path was found, uses the A* algorithm.
Return the list of Vector3 accessible or null if no path was found, uses the Easy Path.
Force an entity to follow the pathpoints, can be a BasePlayer.
Finds the best path then forces the entity to follow the pathpoints, can be a BasePlayer.