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

PathfindingService + Narrow hallways?

Asked by
Jackd44 35
10 years ago

Hello, I'm not sure how many of you have used the new PathfindingService(http://wiki.roblox.com/index.php?title=Pathfinding) but I'm encountering problems with it in my game. Basically, my game features procedurally generated maps, but due to the way I've made them, sometimes it will create a box that caves in on itself. To counter this, I planned to use the new PathfindingService to see if everywhere in the maze could be accessed. The problem occurs in the fact that my hallways are 4 studs wide, and the pathfinding seems to depend on making paths that have start and finish points at least 4 studs from any walls. To try and count this, I was looking on the service's wiki page, and I had found this property(http://wiki.roblox.com/index.php?title=API:Class/PathfindingService/EmptyCutoff), although setting it lower than the default of 0.16 seems to do nothing to help, and setting it above 0.3 seems to break pathfinding altogether.

I'm really stuck on how to go about this, any help will be appreciated.

0
This is live or gametest? kevinnight45 550 — 10y
0
I was attempting this on play solo, so, live? Jackd44 35 — 10y
0
He's referring to ROBLOX.com vs GameTest's Studio. I think it may be live on ROBLOX.com now, though I am unsure BlueTaslem 18071 — 10y
0
The PathfindingService has been released for public use on ROBLOX.com, yes. Sorry I didn't understand the question, I have never used gametest before. Jackd44 35 — 10y

1 answer

Log in to vote
0
Answered by
hiccup111 231 Moderation Voter
10 years ago

ROBLOX recently added another compute path async - which doesn't compute 4x4 block paths.

I haven't tested it, but this plus EmptyCutOff at 0 should work for you.

(Many problems with the pathfinding service are fixed with adjusting the EmptyCutoff value).

Ad

Answer this question