# Subscribe Only Working Once?

**URL:** <https://forums.unrealengine.com/t/subscribe-only-working-once/2210753>\
**Category:** Programming & Scripting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [December 12, 2024, 5:54am UTC](https://forums.unrealengine.com/t/subscribe-only-working-once/2210753 "2024-12-12T05:54:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![astralpastral2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astralpastral2/32/1006729_2.png) [@astralpastral2](https://forums.unrealengine.com/u/astralpastral2)\
**Post date:** [December 12, 2024, 5:54am UTC](https://forums.unrealengine.com/t/subscribe-only-working-once/2210753/1 "2024-12-12T05:54:19Z")

</div>

I am trying to run code whenever my timer succeeds.

It only works the first time.

I’m using the SuccessEvent.Subscribe()

I want it to work infinitely so that it stays subscribed, or runs the code every time, like I say it only works the first time.

Thanks for any help.

```auto
    StartLobbyTimer():void={
        Print("Starting Timer")
        timers_lobbby:=FindCreativeObjectsWithTag(timer{})
        for(Object : timers):
            if(Timer:=timer_device[Object]):
                Timer.SuccessEvent.Subscribe(TimerComplete)
    }

```

The TimerComplete Function only gets called once…

---

<div class="post-metadata">

**Author:** ![Hardcawcanary](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/hardcawcanary/32/906569_2.png) [@Hardcawcanary](https://forums.unrealengine.com/u/Hardcawcanary)\
**Post date:** [December 12, 2024, 8:09am UTC](https://forums.unrealengine.com/t/subscribe-only-working-once/2210753/2 "2024-12-12T08:09:20Z")

</div>

Hey astralpastral2,

Have you got your Timer Device set to restart on completion ?

Otherwise there is the Timed Objective Device

---

<div class="post-metadata">

**Author:** ![LilWikipedia](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/lilwikipedia/32/1139663_2.png) [@LilWikipedia](https://forums.unrealengine.com/u/LilWikipedia)\
**Post date:** [December 12, 2024, 11:10pm UTC](https://forums.unrealengine.com/t/subscribe-only-working-once/2210753/3 "2024-12-12T23:10:09Z")

</div>

I find the `timed objective device` to be much more reliable, but it lacks ALOT of features the normal `timer device` has. I fear it could be deprecated in the future but im crossing my fingers it wont be as many of my core mechanics rely on it.

---

<div class="post-metadata">

**Author:** ![astralpastral2](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/astralpastral2/32/1006729_2.png) [@astralpastral2](https://forums.unrealengine.com/u/astralpastral2)\
**Post date:** [December 19, 2024, 7:05am UTC](https://forums.unrealengine.com/t/subscribe-only-working-once/2210753/4 "2024-12-19T07:05:10Z")

</div>

I think that device is much better for the coding method… I have since decided to just use devices and my problem was that the map was corrupted I think.

I made a new map and that problem went away.

---

<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:** [January 18, 2025, 7:05am UTC](https://forums.unrealengine.com/t/subscribe-only-working-once/2210753/5 "2025-01-18T07:05:31Z")

</div>

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