Skip to content

Latest commit

 

History

History
87 lines (41 loc) · 1.18 KB

File metadata and controls

87 lines (41 loc) · 1.18 KB

Home > server > PathfindingEntityController > pathfind

PathfindingEntityController.pathfind() method

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;

Parameters

Parameter

Type

Description

target

Vector3Like

The target coordinate to pathfind to.

speed

number

The speed of the entity.

options

PathfindingOptions

(Optional) The pathfinding options.

**Returns:**

boolean

Whether the path was found.