# is there a way to get agent when you use Await() function

**URL:** <https://forums.unrealengine.com/t/is-there-a-way-to-get-agent-when-you-use-await-function/1606058>\
**Category:** Verse\
**Tags:** unreal-engine, question\
**Created:** [January 11, 2024, 7:42am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-agent-when-you-use-await-function/1606058 "2024-01-11T07:42:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Messiah4213](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/messiah4213/32/764721_2.png) [@Messiah4213](https://forums.unrealengine.com/u/Messiah4213)\
**Post date:** [January 11, 2024, 7:42am UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-agent-when-you-use-await-function/1606058/1 "2024-01-11T07:42:16Z")

</div>

Hello there!  
I want to know wether there is way to get agent when you use Await() funciton.  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![Proxying](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Proxying](https://forums.unrealengine.com/u/Proxying)\
**Post date:** [January 18, 2024, 6:38pm UTC](https://forums.unrealengine.com/t/is-there-a-way-to-get-agent-when-you-use-await-function/1606058/2 "2024-01-18T18:38:58Z")

</div>

Depending on the event, the Await function will return the instigator. Here’s an example using the Mutator Zone and AgentEntersEvent

Player := Zone.AgentEntersEvent.Await()

Player would be the first player that triggers the event.
