Casting not working

I’m trying to play a sound attached to an actor Cube, that is in the scene, from another blueprint when the player jumps. While “Get All Actors of Class” did the job I’d like to make it more efficient since I already know that I just want to play that particular sound, on that Cube. So I thought about casting… This is what I’ve got so far but I can’t realize how to get a reference to that Cube in order to pin it to the Object input.

By the way, this is the Custom Event that I’m referencing to


Any ideas?

I created an Actor variable, pinned it to the Cast node and it worked! Could we say that this is a proper approach to do something like this?

This is how it ended up being:

You dont have an object atached to the cast, it will always fail, you should get a reference of the cube you want to play the sound on and atach it there

Yes, I know that but my question is: How could I get that reference, other than “Get all actors of class”?

Watch this and you will be set Blueprint Communications | Live Training | Unreal Engine - YouTube