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.
asked Jul 09 '14 at 05:05 AM in Blueprint Scripting
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.
answered Jul 09 '14 at 10:17 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here