Event dispatcher

Hey guys I’m trying to get this event dispatcher to keep repeating, it works once then stops can anybody see why?

Basically my NPC is moving from one of the three random points then when it reaches the target it gets destroyed then it’s being respawned after a certain time.

Yes, at begin play you’re connecting an event to the NPC object, but then you kill that particular instance of the object, so no other events will fire.

You need something permenent in the level to make the NPCs, or / and, you need to make a new NPC after killing the old one.

You could do it like this:

  1. Have an NPC spawner BP in the level, it contains a spawn event ( this BP never gets destroyed ).

  2. When a NPC is spawned, it knows it’s job is to randomly choose a location and move to that location.

  3. When it gets to the location, it calls the spawn event in the controller and kills itself

Voila…

It definitely was the event begin play, I’ve got it working already with the same set up I have. I just had to make some actor overlapping events. I will try out your way as well and see which one seems like will be the easiest to duplicate for multiple NPC. Thank you!