Delete spawned actor from Array...

Hi,

i try to explain my problem. :slight_smile:

I have an Backpack (Actor) with an simple array. I can put things(other Actors) in the Inventory (Actor Array). Everytime i spawn the Backpack Actor, all Actors from the Actor Array spawn around the Backpack Actor. If i grab the backpack again, every Actor get destroyed and respawn after i drop the backpack again (Spawned Item Array). This all works fine.

An example:

1,2,3,4 are different objects and 5 is my Backpack.

http://i.imgur.com/nlZjBSJ.png

My problem is: I want to delete the objects from the inventory array, after i used them (for example: combine each other to get a new object).

I tried to take the spawned Actor Reference to ‘remove’ from the array but it doesn’t work. Same for ‘Display Name’ comparison, because the names changes.

I’m a bit lost right now because i don’t know how i get a reference from the used actor to the original inventory array.

Maybe over the Spawned Item Array?

I look forward to every note. Thank you.

I’ll try to work with this. Maybe it will help.

I’ve got the solution. I used unique Tags for each Inventory Item anyway. So i changed the Inventory Array against a Structure with Actor/Names. Now i delete the entry where the tag = names in the structure.

:slight_smile: