Invisible Wall to make AI not walk pass

Hello,

How do i make an invisible wall to make the AI not walk pass a location in the nav mesh? Of course, at the same time allowing me move in and move out.

I tried to used a blocking volumen, but it doesn’t work sometimes when the AI follow me through the AI move to.

I don’t know which option i have to use to block the AI (My AI use character option bp).

you can make a cube and then tick “actor hidden in game”

I tried it, even try to custom the collision but nothing, those options affect both, my character and the AI

how do you move your ai , with behaviour tree or what ?

Hey there, if the wall is invisible you can do a nav mesh modifier volume and set the area class to NavArea_Null. That way the AI will always ignore the area the the volume takes. You can press P to see the effect it has on the nav mesh.

I’m not sure if AI Move To uses the nav mesh itself, i would recommend you do it with the move to in behavior trees.

I move my AI through AI Move to (Blueprint).

I tried it, but it still doesn’t affect the AI, the AI still follow me to the end of the Nav mesh (Not modifier) and the Nav mesh modifier, leaving the zone where he can move.

My AI use AI Move To (Blueprint) to follow me.