I have an actor blueprint with a component added to it. I want to get an event from the component and run something a timeline in the actor itself when the component runs. I tried to set up an event dispatcher in the component and bind an event to it in the actor, but it does not trigger the print string I have just before the timeline. I know the event dispatcher is activating because of its print string, but it seems to not be broadcasting to the event that should be bound to it. Or did I misunderstand this system entirely? I’m still learning unreal so I would appreciate some help on this.
Hey @InventorPWB! Welcome to the forums!
So there is a slight issue with scope here. We need to see more than what you’re giving, this is a very tight amount of data you’re showing here, but it’s simply leaving out details we need to know. For instance:
Where you are calling the Event Dispatcher.
What the target of the Dispatch is - you do have to specify unless the target is “Self” and it is on the same Blueprint- You can’t call “Self” on a component and hit the parent actor.
The event “Run Sweep Timeline” and the code within.
Those things may not help, and each one may contain the solution
Thanks for the reply! The Timeline Dispatcher Event is being triggered after the player picks up an item, and the end goal is to have the timeline “glide” towards the player. This already works (I tested it directly with a debug keybind) and I was just having issues with communicating between the actor (item) and component (item data component). I know the dispatcher event is triggered because the print string activates when I try to pick up an item, and the “bound” print string also works.
Here is a picture of the timeline code, where the “eventrun” print string does not fire at all. (However using the debug key it did work as intended)
The dispatcher is triggered inside of the actor component, and it (should?) be activating the bound event in the actor itself, as I showed in the original post.
Fixed it: in case someone else has a similar issue, I had the dispatcher set as an event instead of just calling it in the actor component.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.