Array Remove Item not working when trying to remove self?

I am trying to remove an item before I destroy it. I am holding an array in the game class and I am using and interface to access that array. When the items health is gone I want to remove it from that array using remove item. I am passing in the array from the game interface (it seems valid from debugging) and then passing in a self reference. Neither find item or remove item seem to be working even though I know the actor is in the list. Any help would be appreciated.

I don’t think self is going to help you. It will call the blueprint, but not the exact actor that is spawned in the game. You need that spawned actor’s object reference which you can gain as you spawn it, with a trace, etc.

Yeah interestingly enough I made a variable called Me in the blueprint that was of the type of the blueprint and set it to self. If I compare that variable in the arrays it finds it. I don’t know if that is a good way to do it but it works.