Why cant it read from reference object variable?
Why cant it read from the reference object variable of inventory that is inside my thirdpersoncharacter it reads it as null.. and i cant get it to use that object due that it reads it as null how to set it? isnt there like a default constructor or smth?... please help guys i really need to know how to fix it.
asked Aug 28 '17 at 07:17 AM in Blueprint Scripting
From what I see here I think it's because you didn't have an 'Inventory' for it to reference. The way you set it looks like an object, not a data structure, so it won't automatically set to a default value at the start, like an integer or vector; and I didn't saw it in your Character hierarchy. If you want to fix it, either delete the one in your variable then drag one from your content browser to your character; Or spawn one in the character's construct script then sign that to the variable.
answered Aug 28 '17 at 07:35 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here