How would I trigger an event depending on what the camera is looking at?

I want to trigger an event depending on what the camera is looking at. I looked up one plugin made by one of the users allowing to trigger if an actor is seen in the camera view. The plugin is however out dated so I am wondering can ther be a condition which would look if a camera is looking at a specific coordinate like Xrotation is > 100* < 340* then an execution will occur?

Hello,

It is possible to do this by using a Break Rotation node and comparing it against a specified value like below:

Hope this helps,

-W

Hi Tobias,

You are correct, something like below I suppose (I read your question as wondering if it were possible).

That would indeed only yield a TRUE if the yaw (in my example) is between the defined range.

-W

This works great. Until There is a method to check if an object is in camera view, this will do jusut fine.

Hello Wes Bunn,
Could you explain further how this node graph relates the camera’s yaw viewing range to the actor position? I don’t seen how this could determine the actor’s visibility otherwise. Thanks!

I had to check if the camera rotation along a certain axel is within an angle range like camera x angle > 250 and < 300 and if that is true. perform some action.

Thanks for your response TobiasRipper.
Do you mean the axle you checked the camera against was the vector between the actor and camera?
Were you using this blueprint to find all the visible actors? Or to check just a few specific ones?