# How to run different timers bound to the same event?

**URL:** <https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582>\
**Category:** Blueprint\
**Tags:** unreal-engine, Blueprint, question\
**Created:** [August 2, 2023, 5:32pm UTC](https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582 "2023-08-02T17:32:30Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ClaudioPiccinni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaudioPiccinni](https://forums.unrealengine.com/u/ClaudioPiccinni)\
**Post date:** [August 2, 2023, 5:32pm UTC](https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582/1 "2023-08-02T17:32:31Z")

</div>

I’m trying to code a simple logic using blueprints, I understand that using Set Timer by Event/Function will reset existing Timers bound to that Event/Function. I’d like to know if it’s possible to bind multiple timers to the same Event/Function instead of resetting it, and if not, how is this usually handled?

Example of the logic I’m trying to implement:

1. I launch a ball, and I use a 10 seconds Timer to simulate it reaching the target (before telling me if I hit or not).
2. After 2 seconds I can launch a second ball with the same logic.

Currently, as soon as I launch the second ball, the first timer is reset and it’s like the first ball disappears, instead I would like to have the first ball finish his timer and tell me the result while the second ball is flying toward the target.

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [August 2, 2023, 5:42pm UTC](https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582/2 "2023-08-02T17:42:32Z")

</div>

Hey @ClaudioPiccinni!

Have you tried making the ball a spawnable actor?  
You’d spawn the actor(ball) then run the timer off of BeginPlay on the ball.  
They should be separate timers since each ball would be its own individual entity!

---

<div class="post-metadata">

**Author:** ![ClaudioPiccinni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaudioPiccinni](https://forums.unrealengine.com/u/ClaudioPiccinni)\
**Post date:** [August 2, 2023, 5:44pm UTC](https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582/3 "2023-08-02T17:44:38Z")

</div>

Hi @Mind-Brain, thanks for the prompt answer. I would like to not have it as a separate actor, but I recognize that this is a possible solution!

---

<div class="post-metadata">

**Author:** ![ClaudioPiccinni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaudioPiccinni](https://forums.unrealengine.com/u/ClaudioPiccinni)\
**Post date:** [August 3, 2023, 6:38am UTC](https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582/4 "2023-08-03T06:38:54Z")

</div>

In the end I implemented this solution pointed to me by user Gompasta! in the official Discord. It involves spawning an Object from the Actor that wants to use multiple timers:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/c/7/8c7163d0ece78a8d04539217ee1e21a9c73b2640.png)

The object has this event + dispatcher to notify the end of the timer to the Actor:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/c/4/a/c4a119c25384b1fe3371539ae0abcdacbf159854.png)

In my version I ended up passing a variable in input to StartTimer, to set the time I needed for the timer.

This solution still involves spawning a separated entity (so I set the reply by mindbrain as the correct one), but this is fully generic without any specific actor logic. It only has a generalized timer and a timer-elapsed function, then it gets discarded, and you can spawn as many as you want. I think it’s an elegant solution albeit a bit convoluted.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [August 3, 2023, 7:46am UTC](https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582/5 "2023-08-03T07:46:14Z")

</div>

I might be missing the point, but how about:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/7/9876d9e5406bef8e231c438690ea266f5d644714.png)

A `Delay` could also work. Or with a single timer:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/9/fb9a28ddd90d1c4a2ffe385dfc1d1411b9b2f65b.jpeg)

- shoot ball, wait 10
- do stuff, wait 2
- shoot ball

You run the same timer but with different duration. Is this what you’re after?

---

<div class="post-metadata">

**Author:** ![ClaudioPiccinni](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ClaudioPiccinni](https://forums.unrealengine.com/u/ClaudioPiccinni)\
**Post date:** [August 3, 2023, 10:14am UTC](https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582/6 "2023-08-03T10:14:19Z")

</div>

No this is not what we were talking about

---

<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:** [September 2, 2023, 10:14am UTC](https://forums.unrealengine.com/t/how-to-run-different-timers-bound-to-the-same-event/1248582/7 "2023-09-02T10:14:25Z")

</div>

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