How to determine if the enemy is on the right or left side of the character?

Hello, I was wondering if there’s a way to tell if an enemy is on the right or left side of my character.
I’ve looked into the dot product node but unfortunately, it doesn’t differentiate between left and right, only front/back
and I have seen people using the cross-product but on C++ and I’m using blueprints.

ultimately I only want to display a widget if an enemy is on my right and a different widget if it’s on my left.

any suggestions?

You can use dot product for this:

using the cross-product but on C++ and I’m using blueprints.

Also available in BPs:

2 Likes

thanks man u r a legend <3

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