method GetPickupObject() is supposed to return an object based on AKPickupObject class. For a weapon based on AKWeapon_Projectile class I would like to have pointer based on object, and for another type of object, an helm, I would like to have pointer also. Since all these objects are based on AKPickupObject, I’ve chosen this base class.
But in blueprints, I should be able to cast object against AKEquipObject or AKWeapon class type.
Therefore, if I create a new object instance with :
AKPickupObject* Instance = NewObject(YourOuter, Blueprint->GeneratedClass);
will new instance still be derived from original object class ?
I’ll try and let you know.
D.