Event dispatcher doesn't work

Hello, i want to know why my scrpit don’t work.

Thanks for your help :slightly_smiling_face:

hi @Wadjidjo

It appears you are trying to cast your Agent_BP to boxdanse_BP, which most likely is going to fail unless it is a subclass?

To test the theory in your Agent_BP put a print node on the cast failed output pin when you cast to boxdanse_BP

Other than that i cannot see anything obvious but my eyes are bad at this time of day :wink:

You had right, when i put a print string in the failed output it return the “Hello”.
What i need to change ?
Thanks

I suggest finding some youtube tutorials about casting, how to find other actors in scene and then how to sue the events

in short from what I see you are not finding the object with the event, and for this the cast fails

Maybe if you explain what you are trying to do i can have a look at a solution. You are casting 2 different classes to each other which will always fail. What does each blueprint do, and what is the tasl you wish to perform with the above code?