Open the door always away from player

You could get the “UnitDirectionVector” from door to player and calculate its dot product with the door’s forward vector. If it is negative, the player is behind the door, if it is positive, the player is in front of it.

Then it is a matter of picking the correct animation for each case.

This, of course, assumes the door actor is “facing” the door itself - if not, you could always just place an “arrow” actor inside it facing the proper way, I guess.

Hello,
im looking for solution to open the door always awas from player.
At the moment my door is working with one Box Collision. Press ‘F’ the door is open - alway into one way.

As far as I know, I have to use two boxes, one on each side.

My question is, how to get the player position, in witch box he is, or maybe there are an other, easier, solution how to do this.

Thank you!

Thank you,
I got it with two boxes, and check in what box my character is. Its working, kinda buggy but its ok atm.

Thanks!