Cast to BP_FirstPersonCharacter from Level Blueprint fails

Hello, again.

Cant figure out why is this cast failing

Thanks in advance

Is “Character Ref” valid? How did you set it?


add variable → character → object reference

You only created the variable and therefore its value is null or invalid. You need to set it and the way to do it depends on many factors, like single player vs multiplayer, if the character already exists when you’re using it, if it’s the player, …

But let’s keep it simple. If your game is single player and what you want is the player character, then you can just use “Get Player Character” directly instead of a variable.

But, if you want to set the variable then just:

Now the cast should work.

1 Like

thank you very much! this worked