Casting To Character Always Fails

I think im doing everything right but the blueprint always fails to cast in every blueprint
screenshot 92 shows the first part of the blueprint
screenshot 93 shows the second
and screenshot 94 shows the output
it says cast failed everytime plz help ASAP i gotta finish this school project within like 2 or 3 days thx

You are sure that you spawning that character? Do you maybe change possession?

it says auto possess player disabled is that right?

Hey man, so I looked this over & there’s 2 things of concern here

  1. “Does game save exist” node has a user index. In your picture, this index is “1” However, in your cast to the player character - when you “getplayercharacter” your index is “0” - This could be the reason why your cast keeps failing. Setting these indexes both to “0” should help eliminate the failed cast (See pic1)

  2. This cast should not occur (in my opinion) inside of your logic. It should happen on Event Construct in the widget. So here’s what I’ll suggest…

On Event Construct inside your “Name Yourself” widget - immediately cast to the player character and confirm whether or not the cast is successful.

This cast should always be successful, make sure the index is “0” (see pic 2)

If it is in fact successful at that point - promote it to a variable (so it can be stored inside the widget as a valid character reference)

Then you will not need to cast to the character within your logic - because you will already have a valid reference to it (from event construct) (See pic 3)

Hope this helps, let me know

Fixed It, Just Had To Put Auto Possess Player To Player 0

Glad to help Pal…

If anyone else has issues with casting or references I go into detail on both of these topics in video #1 and #25 in the link below. Just in case this solution doesn’t solve your problem.