I am
Setting the define of an actor on spawning. When it spawns is sets a reference to itself to controllers in the area.
How do I set its reference to null in the controllers? Do I do that in a destructor? Is there something else that is called when setlifetime() s time is up? Is there a way to set a weak pointer that will clean itself?
Right now the pointer is still left after the object is gone, it’s not null but is not valid but I don’t k ow how I should be testing it.