# How can another actor check if input is pressed?

**URL:** <https://forums.unrealengine.com/t/how-can-another-actor-check-if-input-is-pressed/297888>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [November 1, 2014, 5:24pm UTC](https://forums.unrealengine.com/t/how-can-another-actor-check-if-input-is-pressed/297888 "2014-11-01T17:24:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![xlar8or](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/xlar8or/32/710746_2.png) [@xlar8or](https://forums.unrealengine.com/u/xlar8or)\
**Post date:** [November 3, 2014, 1:58pm UTC](https://forums.unrealengine.com/t/how-can-another-actor-check-if-input-is-pressed/297888/2 "2014-11-03T13:58:35Z")

</div>

It depends on what type of input you want to check. If you want to check if an action binding is pressed i think you have to set a boolean variable on the Pressed and Released event so that you track the state and then use that boolean on the if you mentioned. If you just want to check if a hardcoded key is pressed you can use [this](https://docs.unrealengine.com/latest/INT/API/Runtime/Engine/GameFramework/APlayerController/InputKey/index.html).

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-another-actor-check-if-input-is-pressed/297888)._
