How to make a zone the player can't walk through but enemies can

I am trying to make certain area that the player can’t enter, but the enemies can walk through. Is there a way to make a box collision that only NPCs can walk through? Or any other methods that would create this effect?

Look into collision profiles. You need to set the player’s collision profile to something different from the enemy profiles, and then set the box collision to ignore enemies but block the player.

Midisport_8x8s was correct in the idea, it took a couple of more steps. I first created a custom object trace channel I called EnemyObject which I set the default to block. I then created a custom collision preset called Enemy which I made to have the exact same settings as the Pawn preset, but with the object type being EnemyObject. This step is necessary but I have multiple enemies so this saved time. I then changed the enemies collision preset to Enemy. I then created a box collision in the actor that I wanted to block the player but not the enemies. I changed the box collision to the custom preset then set everything to ignore besides the Pawn Object channel. The last step was to go to the advanced tab under collision and change the Can Effect Navigation setting to false. Then it worked like a charm.

Thanks for setting me in the right direction.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.