# Event dispatcher call too quickly

**URL:** <https://forums.unrealengine.com/t/event-dispatcher-call-too-quickly/2132774>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [November 18, 2024, 1:01pm UTC](https://forums.unrealengine.com/t/event-dispatcher-call-too-quickly/2132774 "2024-11-18T13:01:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![RomFou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RomFou](https://forums.unrealengine.com/u/RomFou)\
**Post date:** [November 18, 2024, 1:01pm UTC](https://forums.unrealengine.com/t/event-dispatcher-call-too-quickly/2132774/1 "2024-11-18T13:01:46Z")

</div>

Hello everyone,  
After doing several searches online and on the forum, I’m struggling to find a solution to my problem.  
**Context:**  
I have a SpellSystem component that generates spells, which themselves have event dispatchers that are called when they hit an actor. The event dispatcher triggers correctly on my spells, except for my melee spell, which has a lifespan of 0.26 second

**Behavior:**  
The event dispatcher triggers occasionally, mostly when I spam my attack.

**Issue:**  
Is 0.26 seconds too short to use an event dispatcher?  
Using an interface works, but I’ve read that the best practice would be to use an event dispatcher.

Here is the spell ( Spell on Hit BPI always trigger )

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/b/2/bb26ae5e7c187503617fe2563daa65a580c63f1d.png)

Here is the spellSystem component ( print Event triggers occasionally )  
testattack event triggers when i leftclick

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/b/53be48d731dde1519dec0c498708798bcc230bb9.png)

Thank you for taking the time to read my message.

---

<div class="post-metadata">

**Author:** ![Auran131](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Auran131](https://forums.unrealengine.com/u/Auran131)\
**Post date:** [November 18, 2024, 1:35pm UTC](https://forums.unrealengine.com/t/event-dispatcher-call-too-quickly/2132774/2 "2024-11-18T13:35:48Z")

</div>

its not the Lifespan, its the order of operations, you spawn before you Bind, so basically if it overlaps ‘instantly’ which wouldn’t be uncommon for Melee abilities its too late.

what you could do is call an ‘Activate’ function on the Actor after you Bind.

---

<div class="post-metadata">

**Author:** ![RomFou](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RomFou](https://forums.unrealengine.com/u/RomFou)\
**Post date:** [November 18, 2024, 1:44pm UTC](https://forums.unrealengine.com/t/event-dispatcher-call-too-quickly/2132774/3 "2024-11-18T13:44:33Z")

</div>

Works fine ! Thx @Auran131 !

---

<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:** [December 18, 2024, 1:45pm UTC](https://forums.unrealengine.com/t/event-dispatcher-call-too-quickly/2132774/4 "2024-12-18T13:45:11Z")

</div>

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