Download

Blueprint object used in C++ class

Hey people,

so the basic of my problem is the following: I’ve got an “Equip weapon” function in the character’s C++ class that accepts a pointer to an object of the “Weapon” class. Using the “weapon” class I’ve created a blueprint in UE4 for the weapon “War Hammer” (added the name, attack modifiers and all that via the blueprint editor). Now I would like to know how can I reference that weapon object to be “equipped”. So far I’m receiving a null-pointer. Any help on this subject would be greatly appreciated!