Location using objects axis?

Ive been having trouble with finding the position of an object from an object? I hope that makes sense. Basically I’d like to know if a camera is on the left or right side of a specific object. So if the camera is on 0 - 180 Z axis of object A it will do “something”
same for 180-360.

does this make sense?

Hi man,
There are some ways

1: Dot product, + acos
Here a question about it, basically you can have a value that goes from 0 - 1 , for know if a vector is perpendicular or parallel
https://answers.unrealengine.com/questions/593013/dot-product-acos-to-find-an-angle-strange-results.html?sort=oldest

2: Add a scenecomponent in your actor
Use this actor and get the world location of the TARGET,
Set the scenecomponent to that World location.
now you can read the position relative to your actor.

3:Get the Degrees 360
Here another forum about convert the dot producct into 360 degrees
https://forums.unrealengine.com/development-discussion/blueprint-visual-scripting/1396898-how-to-find-if-an-actor-is-in-front-or-behind-another-actor

Awesome I’ll take a look into all 3 options. My method at the moment isn’t too great. I was using tracers from the camera and meshes.

Thank you!