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.
asked Mar 15 '17 at 01:51 PM in Blueprint Scripting
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
answered Mar 15 '17 at 06:27 PM
Sean L ♦♦ STAFF
Follow this question
Once you sign in you will be able to subscribe for any updates here