Hi,
i try to explain my problem.
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.