Casting to child blueprint

Hi everyone

I’ve been trying for a couple weeks to get the information of a weapon but no matter what i try it always comes back with a “Accessed none” error and its driving me mad. It seems like this should work but I’m not understanding why it never seems to get the information from it and either fails to cast or accesses none



Where are you setting the value for the Weapon Master and BP Rocket Launcher variables?

Accessed None errors mean that the variable is empty or NULL. You need to set it to a reference of the actual object/actor from the level.

If you’re trying to access the default values of variables from a class, you need to create a Class Reference Variable instead of an Object Reference.
image

Set the value of the variable to the child class you want
image

Use the Get Class Defaults node to get the default values.
image

2 Likes

Thank you so much for that. I’m fairly new to this but hadn’t got that stuck before. You’re a legend. Now to just figure out how to randomly set the value of the variable which will hopefully wont take as long. Thanks again though, massive help

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.