How to see an Actor's Variables after a Line trace Break Hit Result

Line trace has hit an Actor… Then I do a Break Hit Result… How do I make the variables within the hit actor visible to branch off from?

You need to cast the hit actor to the actor class whose variables you’re trying to access. Like this…

image

In my case I’m casting it to QGPawn_BP. I can then access this actors variables.

How do you get the pins to show after the cast?

From there you drag off of the cast actor pin and you should have a pair of get/set for each of the variables exposed in that class. So drag off then search for your variable name. If you’re expecting to be able to “break” the cast actor into a series of pins like you did the hit result, that’s not going to work as that is an action specific to structs.

Worked like a charm thanks!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.