# I want to call an asynchronous function multiple times.

**URL:** <https://forums.unrealengine.com/t/i-want-to-call-an-asynchronous-function-multiple-times/2530862>\
**Category:** Verse\
**Tags:** unreal-engine, unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [May 28, 2025, 2:05am UTC](https://forums.unrealengine.com/t/i-want-to-call-an-asynchronous-function-multiple-times/2530862 "2025-05-28T02:05:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![toy-ichi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/toy-ichi/32/1030681_2.png) [@toy-ichi](https://forums.unrealengine.com/u/toy-ichi)\
**Post date:** [May 28, 2025, 2:05am UTC](https://forums.unrealengine.com/t/i-want-to-call-an-asynchronous-function-multiple-times/2530862/1 "2025-05-28T02:05:01Z")

</div>

I want to be able to call `spawn{Game(Players)}` multiple times. When I tried using `Subscribe`, I couldn’t call it because it’s not of type `agent?`. I’ve included the relevant part of the code, so please let me know how to fix it. I tried using `loop:`, but the function was called redundantly for each player on the map.

 ![スクリーンショット 2025-05-28 110441](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/3/c/d3c2d8d66d1f3272799869102afecc7a3b86817f.png)

---

<div class="post-metadata">

**Author:** ![Mineblo](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mineblo/32/1203575_2.png) [@Mineblo](https://forums.unrealengine.com/u/Mineblo)\
**Post date:** [May 28, 2025, 4:03am UTC](https://forums.unrealengine.com/t/i-want-to-call-an-asynchronous-function-multiple-times/2530862/2 "2025-05-28T04:03:00Z")

</div>

Make another function for the trigger that would then trigger the Game Function

```auto
OnTriggered(MaybeAgent:?agent):void=
       spawn{Game(GetPlayspace().GetPlayers())}

```

---

<div class="post-metadata">

**Author:** ![toy-ichi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/toy-ichi/32/1030681_2.png) [@toy-ichi](https://forums.unrealengine.com/u/toy-ichi)\
**Post date:** [May 28, 2025, 5:59am UTC](https://forums.unrealengine.com/t/i-want-to-call-an-asynchronous-function-multiple-times/2530862/3 "2025-05-28T05:59:21Z")

</div>

**Thank you very much!**

I was able to successfully trigger it multiple times.
