how to check if an actor is on screen?

I have to check an actor if it is visible on screen on not.
The tricky part is that what is on screen is not from the player pov, but a surveillance camera.
Basically, if a specific actor comes within the surveillance camera field that is projected into viewport, I want to activate an alarm.

How do I do that in BP. Thank you!

So we’re not really checking that. We’re checking whether the surveillance cam can detect a pawn. Have you looked into Pawn Sensing?

Something similar to:


This component:

Could that work in your scenario?

Weeeeeeell, actually, the gameplay itself is on what is on the surveillance camera! (so there is not player actor involved)
But ok, I am going to check that

I am following this thread

Can I change the GetPlayerController here with the active camera?

1 Like