Download

Ai cant find the correct z location

I’ve got a 2-floor house in my game and an ai which is supposed to locate the player based on sound so when the player is on the second floor and ai is in first floor and the player makes a noise event the ai doesn’t go to the second floor, it just goes where the x and y location was on the first floor which is totally wrong. how do i fix this?

Hi,

it just goes where the x and y location was on the first floor which is totally wrong. how do i fix this?

can you show the code where you set the location the AI should move to?

And did you visualize the navmesh to make sure that the AI can reach the location on the second floor?

i solved the issue by using the ProjectPointToNavigation node.