How to cast a variable to another blueprint?

Hi!
I know there are a lots of questions about casting variables but i cant find the good one which solves my problem.
So i have two actor blueprint the first is a sender and the other one is the one which should get the changed variable.

MY PROBLEM:If i apply an event i want it to cast the variable to the other blueprint i dont understand what should i give to object under cast pls explain it somehow not so specific(pictures from blueprints bellow) there is a variable fogado(string) that i want to change! Thanks for the help!

Hi. I think everything looks ok. But I don’t know what that “Object to Send” variable contains. Does it contain a reference to the fogado actor in your scene?

I would also check if the overlap is working. Put a Print String node after the BeginOverlap event to make sure that is working correctly.

I’ve recreated your setup on my end, and yes, I think the problem will be that “Object to send” variable. I think it doesn’t contain anything. Make it public by clicking on the eye icon, and then, in your scene, click on your bp_ado actor and you will see that you can assign something to the “Object to send” variable in the details panel. Select your bp_fogado actor and the variable should contain a valid reference to the fogado blueprint, and be able to assign the string correctly.

Thanks a lot it works by now , and yes it was empty but i dont get it why was it empty because when i created that variable i selected bp_fogado on the other hand it was strange because there was only BP fogado and not bp_fogado
Anyway thank you

When you create a variable, you can select its type, that is what kind of data the variable will hold. But not the data itself. That’s what you made by selecting BP fogado as the type. But you still had to store a reference to the actor itself.

I’m glad it worked :slight_smile: