Summary
- Navmesh not detected by NPC when placed in uefn.
- Ai navigation modification device doesn’t remove the arrows coming down from an elevated floor or any arrows for that matter.
- Purple arrows pointing down from elevated floor or arrows perpendicular to a ramp/stair that don’t make sense at all.
(READ ADITIONAL NOTES TOO)
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Devices
Steps to Reproduce
- Go to the island settings and enable:
- Debug
- Navigation
- Verse Debug Draw
- Fast Iteration Mode
- Place an NPC spawner
- Create an NPC behavior basic script, call it random_wander_behavior and paste the code I provided (might have to change 2 variables)
new_npc_behavior_basic - Pastebin.com - Doubled click the newly created behavior script and set:
Type: custom
Behavior: Verse Behavior
NPCBehavior Script: Script that was just created - Save and exit the window
- Click on the npc spawner and assign the newly created behavior to the “NPC Character Definition”
NPC setup is done, now:
- Create a square area with the AI navigation modifier as shown in the screenshot
- In unreal editor NOT FORTNITE add a 1st floor, ie: a stair and a couple of floors
I used the ‘Yacht Deck A C12’ floor and the ‘Yacht Interior Stairs C2’ stairs - Start the game
Expected Result
The npc should be able to go up the stair and and start moving to random valid locations found on the 1st floor
Observed Result
The npc stands still and does not count the navmesh as ‘walkable’ while trying to find a valid location on the floor height (y axis) set in the variable
If I had placed the building in fortnite instead of the editor it would have worked and the npc would be able to go up the stairs and randomly go to a point
Platform(s)
PC
Video
Videos of the main problem + all the problems listed in the additional notes
https://imgur. com/a/Frt9E1x (Remove the space), did not put the link as a whole because there are multiple videos in the link and it doesn’t show all of them in the forum if there is no space
Additional Notes
This is one of many issues I found with the navmesh system. Another issue is with the navmesh arrows, they make no sense at all, in a video I have provided you will see purple arrows pointing down from the first floor to the ground floor, this makes the npc think that it’s a valid way to get down when it’s not, so the npc gets stuck in that position until it finds a new one, same thing with the stairs, random arrow pointing perpendicular to the stair that makes the npc think it’s a passable point when it’s not.
Another issue is with the Ai navigation modification device, if I place it on the edge of a floor to remove all the arrows pointing down so that the NPC is not able to go up or down from the hanging floor, it does absolutely nothing.
Another issue is that because of the arrows pointing down from the floor even though the Ai navigation modifier is blocking the edge of the floor the NPC is able to escape the barrier by jumping from the first floor to the ground floor and escape the barriers set
Everything I talked about can be seen in the videos I provided, let me know if you need more information about this and I will be happy to provide more.