play Animation from a widget with casing

Hello, I have a simple question.
I made an animation on a widget and when I’m trying to cast and play it when the actor is overlapping a coin its not working.
does anyone have a simple solution for this?

Hi there @ilailevavi, hope you’re well!

This topic has been moved from International to Programming & Scripting: Blueprint.

When posting, please review the categories to ensure your topic is posted in the most relevant space.

Thanks and happy developing! :slight_smile:

1 Like

Hey @ilailevavi!

So I think you need to pass in “Get Player Controller” (or maybe it’s get player character) and pass it into “Owning Player” on the Create W Hud Widget! :slight_smile:

Hello, I fixed it :slight_smile:

I placed the animation when I created the widget in the gamemode and then cast custom
event to the Coin.
I will try your idea anyway to see if it woks too.

Thank you anyway.

Not working