Error when trying to receive character's variable

I have literally no idea, but I have an error when trying to receive the character’s variable. I assume its something to do with the character reference…any help will be greatly appreciated. :slight_smile:

Where are you setting CharacterRef?

CharacterRef is just a reference to my characterblueprint that contains the magicka variable.

but the CharacterRef is inside the level blueprint

It’s a variable of the same type as your character, but it won’t have a reference to your actual character in the level unless you set it. Right now it is probably not a valid reference to your character.

Are you doing anything like the below example to get a reference to your character in your level? (Where the actor class is set to the class your character is)

okay that makes sense. I no longer have the error now, thank you so much! I had no idea that you had to set the actor class.

I’m trying to mark the question as solved, but for some reason I can’t.

No problem. The get all actors of class is finding your character in the level and setting your CharacterRef to it, so it’s actually referencing the character now. My answer was a comment, but you should be able to accept it now with the tick icon.