Download

How do I get a variable from another Actor ?

Here I am again, hitting a wall :frowning:

I set a vector variable in player’s BP. I also have another Actor that needs to get that variable and set its location based on that vector variable retrieved from player’s BP.

How do I get a variable set in one actor’s BP, in another actor’s BP ?

Someone tipped me about “reference”, but after reading UE4’s doc I could get it to work. I created reference actor in my non-player actor, but got lost in how to get player’s vector variable. Likewise, I tried creating reference actor in player’s BP, but that didn’t get me anywhere.

Please help.

Thanks

Solved it by casting