Event dispatcher not repeating

Hey guys I’m trying to repeat a event dispatcher but for some reason it works one time then stops?

can you post some pics of your setup…

http://https://ibb.co/Q6k8CvN+https://ibb.co/BqSD23g

What is going on is, my NPC is moving to a target point and when successful I’m calling the dispatcher then I destroy the actor. Then in the Target Point BP I’m assigning the dispatcher and re spawning the actor after a set amount of time. It’s working perfect, but it doesn’t repeat like I want it to. It does it once then stops.

I think this array getter is the problem. Dispatcher happens only once, possibly because this getter has a value of “0”

I would create a new integer variable called “Spawn Count” (default value “0”) as the input to the getter. After getallactorsofclass, add each new spawn to an object array & add 1 to the SpawnCount variable (before actor is destroyed) - so that each new spawn is stored in the object array and can be indexed by the integer value. Let me know if that works… good luck