Have a problem when trying to get index from get all actors of class, in array of 2 items,0 and 1, when 0 is picked up 1 automaticly changes to 0, is it possible for index to stay same?
Get All Actors of Class index is just result index, there no guaranty that each call gonna give you same index on specific actor and not mention there nothing that ties actors with your indexing.
So insted of using Get All Actors of Class all the time you should do just once, keep the array and use that for index. Or even better make A_BasePickUp Begin Play call GameMode to register it self to some array and on destroy also do call to remove it.
The order of GetAllActorsOfClass may change each time its called. Depending on how you’re setting index something like this may work:
I got it working with getting attached actors from A_BasePickUp