Download

Reading Variables From Other Actors

Hi all,

I’m trying to have one actor read a variable from another and compare it to one of it’s own. So the situation would go like this: Actor A hits Actor B, then I compare a weapon variable on Actor A to a shield variable from Actor B to determine damage dealt. I’ve been trying to do this with an Event Hit, but I’m stuck as to how this is done. Can anyone point me in the right direction? An example of this already done (like a screenshot of a BP), or a YouTube tutorial would be perfect, but I’ll take anything at this point!

Thanks in advance!

You need to drag of the actor node of the event hit and do a cast to your actor B - then you can pull out the variable.

That worked great, thanks!