Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

How to change EmptyCutoff?

Asked by
22ron 0
8 years ago

EmptyCutoff is a part of the path finding service but I can't figure out how to change the value . anyone know? :3

1 answer

Log in to vote
0
Answered by
pyro89 50
7 years ago

EmptyCutoff is a property of the Pathfinding Service, written as a percentage.

The percentage is basically the maximum volume a voxel can contain to be considered empty when making paths.

A lower number means more of the 4x4x4 cube has to be empty or else the pathfinder will find a different way from point A to point B, a higher number means you can add more to a box and still have it as part of a path.

All you need to do to change the value is to find the PathfindingService, and change the value.

local PathfindingService = game:GetService("PathfindingService") -- Found the service.
PathfindingService.EmptyCutoff = .5 -- Set the value, from .16 to .5
Ad

Answer this question