You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want NPCs to pathfind from a parking spot to a seat INSIDE the pizzeria. Walking through a door. -
What is the issue? Include screenshots / videos if possible!
The NPCs try to walk through the windows and get stuck at corners. Aswell, when they get close to going through the door, they start walking towards a corner or window instead of through the door.
(Here you can see that the NPCs all want to go through at the EXACT same spot, even though they got different parking spots and different seats to walk to.) -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve searched through all of the forums on DevForum and tried adjusting the AgentRadius and AgentHeight. I’ve also tried disabling collison and CanTouch + CanQuery on the door descendants. Thing is, the NPCs were able to pathfind correctly before, but during time they stopped working correctly.
Details:
(Here is the code that makes the NPC pathfind from their parking spot to their assigned seat) “SmallBarrier” is the barriers that are set around the pizzeria shown in the screenshot below:
“Region” is right now not existing as I tried removing the “Region” parts to see if that was the issue.
-- This is an example Lua code block
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.