Home > server > PathfindingEntityController > pathfind
Calculate a path and move to the target if a path is found. Returns true if a path is found, false if no path is found.
Signature:
pathfind(target: Vector3Like, speed: number, options?: PathfindingOptions): boolean;|
Parameter |
Type |
Description |
|---|---|---|
|
target |
The target coordinate to pathfind to. | |
|
speed |
number |
The speed of the entity. |
|
options |
(Optional) The pathfinding options. |
boolean
Whether the path was found.