# how to check if an actor is on screen?

**URL:** <https://forums.unrealengine.com/t/how-to-check-if-an-actor-is-on-screen/782062>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question\
**Created:** [March 2, 2023, 1:02pm UTC](https://forums.unrealengine.com/t/how-to-check-if-an-actor-is-on-screen/782062 "2023-03-02T13:02:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 2, 2023, 1:55pm UTC](https://forums.unrealengine.com/t/how-to-check-if-an-actor-is-on-screen/782062/2 "2023-03-02T13:55:48Z")

</div>

> [@lostshun](#):
>
> I have to check an actor if it is visible on screen on not.

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:

> [@Restrict Pawn's Rotation](https://forums.unrealengine.com/t/restrict-pawns-rotation/487856/7):
>
> Just to clarify: [[Image from Gyazo]](https://gyazo.com/d85aeee26dd5c1117565318e731a86fa) This is based on Distance from the Player but, ideally, should also incorporate the angle so the whole thing switches off (disable Tick, mayhap?) when the player is far away and outside of the vision cone. The vision cone is already calculated so you could leverage that. But ofc, you may have a different idea as to when the turret’s target seeking script kicks in!

* * *

This component:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/9/d3953be3e518145b2403f88a4077d2231f650e2e.png)

Could that work in your scenario?

---

_[View the full topic](https://forums.unrealengine.com/t/how-to-check-if-an-actor-is-on-screen/782062)._
