How to cast to a pawn?

so ugh im trying to make a pokemon styled game or atleast get a template for it and i have 2 pawns… that are just circles with difent materials… now how do i cast it ? im trying to get the variables from these pawns to show in the health bar but it doesnt because because the bars arent red

Hey Friendly Seal,

You can just type “Cast to (Type you want to cast to)”

And it should show up.

304253-cast.png

I’m guessing you need to get a reference right?

You can either ‘trace’ with line, sphere, box, capsule traces or you can use the get all actors of class function. Get all actors of class is mainly for prototyping since it can be kinda heavy so saving a reference when the pawn is spawned would be the ideal way to save it.

I’m on mobile right now so lmk if you need screenshots.