# Is Player Busy?

**URL:** <https://forums.unrealengine.com/t/is-player-busy/603580>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [July 13, 2022, 2:08am UTC](https://forums.unrealengine.com/t/is-player-busy/603580 "2022-07-13T02:08:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Codename\_Prince](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codename_prince/32/577208_2.png) [@Codename\_Prince](https://forums.unrealengine.com/u/Codename_Prince)\
**Post date:** [July 13, 2022, 2:08am UTC](https://forums.unrealengine.com/t/is-player-busy/603580/1 "2022-07-13T02:08:47Z")

</div>

I need an event that triggers while the Player is performing a counter or finishing move that tells the enemy A.I to stop attacking.

Visual reference, Batman arkham series.  
When batman counters an enemy no one attacks until he’s done.

---

<div class="post-metadata">

**Author:** ![AnZy\_03](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AnZy\_03](https://forums.unrealengine.com/u/AnZy_03)\
**Post date:** [July 13, 2022, 2:36am UTC](https://forums.unrealengine.com/t/is-player-busy/603580/2 "2022-07-13T02:36:29Z")

</div>

You can use [Event Dispatchers](https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/Blueprints/UserGuide/EventDispatcher/) for it. You can call the event when your player goes into a counter and bind functions on the AI to perform the behaviour you need.

---

<div class="post-metadata">

**Author:** ![Codename\_Prince](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/codename_prince/32/577208_2.png) [@Codename\_Prince](https://forums.unrealengine.com/u/Codename_Prince)\
**Post date:** [July 16, 2022, 12:16am UTC](https://forums.unrealengine.com/t/is-player-busy/603580/3 "2022-07-16T00:16:20Z")

</div>

I’ll give it a shot. Thanks
