# How can I use suspends and loop function when subscribes?

**URL:** <https://forums.unrealengine.com/t/how-can-i-use-suspends-and-loop-function-when-subscribes/2095300>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [October 30, 2024, 7:01am UTC](https://forums.unrealengine.com/t/how-can-i-use-suspends-and-loop-function-when-subscribes/2095300 "2024-10-30T07:01:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KrCha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krcha/32/987705_2.png) [@KrCha](https://forums.unrealengine.com/u/KrCha)\
**Post date:** [October 30, 2024, 7:01am UTC](https://forums.unrealengine.com/t/how-can-i-use-suspends-and-loop-function-when-subscribes/2095300/1 "2024-10-30T07:01:35Z")

</div>

![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/f/a/9fa55878f90637ea025cb13aeabdfbc53b8b25cc.png)  
I want to subscribe a function that is using loop but it cannot do that. What is the problem?

---

<div class="post-metadata">

**Author:** ![ok\_studios](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ok\_studios](https://forums.unrealengine.com/u/ok_studios)\
**Post date:** [October 30, 2024, 8:15am UTC](https://forums.unrealengine.com/t/how-can-i-use-suspends-and-loop-function-when-subscribes/2095300/2 "2024-10-30T08:15:47Z")

</div>

You should be able to spawn it out. Spawn will allow you to call an async function (the loop with sleep) and not be necessarily tied down to the passing of the agent reference.

See this video at the 12:20 mark:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/7/b/87be3cba5fec87af3c8a7d1f562448e6374cd61c.jpeg "Spawn Custom Pets / Props in Fortnite - UEFN / Creative 2.0") ](https://www.youtube.com/watch?v=2-0t1mkQ6yc)

---

<div class="post-metadata">

**Author:** ![KrCha](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/krcha/32/987705_2.png) [@KrCha](https://forums.unrealengine.com/u/KrCha)\
**Post date:** [October 30, 2024, 12:59pm UTC](https://forums.unrealengine.com/t/how-can-i-use-suspends-and-loop-function-when-subscribes/2095300/3 "2024-10-30T12:59:29Z")

</div>

I really thanks to you for helping me!!

---

<div class="post-metadata">

**Author:** ![system](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/1/3/713c9d3f58553f0de89543d76a8a3a2779dc9fa4.png) [@system](https://forums.unrealengine.com/u/system)\
**Post date:** [November 29, 2024, 12:59pm UTC](https://forums.unrealengine.com/t/how-can-i-use-suspends-and-loop-function-when-subscribes/2095300/4 "2024-11-29T12:59:46Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
