Hi All,
I’m having a c++ ItemBase(subclass of AActor) class from which all my blueprint item classes derive and they also implement an Interactable interface having only the Interact method. In my playerCharacter on press of a certain key I am looping through all the overlapping actors and if an actor implements the interface, the Interact event is fired. In one of the item subclasses (BP_Sphere) I implement the Interact event and call DestroyActor. When I put the player within the SphereCollider of the item and hit the key, the node breakpoint is certainly being hit and if anything is beyond that, that is also being executed, however the actor is not being destroyed from the scene. But if I use the same ItemBase as a blueprint base class instead of c++, it works fine. Am I missing something ?
Here is the c++ itemBase class:
and here’s the BP_Sphere: