Cast to PhysicsBallBP problem

Hello, I am creating my Healthbar system and I can´t cast to PhysicsBallBP, don´t know someone how to fix that?

That image is from HUD and there is error with Cast to PhysicBallBP.

Hey Renzotom,

Try using GetPlayerPawn instead of GetPlayerCharacter. The reason for this is because PhysicsBallBP is not based on Character, it is based on Pawn. So you won’t be able to cast a Character reference into something that expects a Pawn reference.

Have a great day

Now work, thank you very much!

And little question, when I will have more characters, but same pickable object for health for all, I must create that for all objects, or there is something for Cast to all_objects_from_the_list ?

And can you see my other questions please?