Give unique index to instance of Blueprint

You need something to do the counting, how about this:

Image from Gyazo

Hello everyone !

So, my question is, I think, quite simple. I’ve done a checkpoint blueprint for my racing game, and I need to give to each copy i make in the world a unique index, wich is X+1 each time i duplicate my blueprint. I thought about a LastIndex + 1 in the construction script, but thi does not seems to work.

Also, I’m trying to change only the appearance of the last one, to symbolize it’s the finish line, and tried with a Last Index, again on the construction script so I can see where it places it, but it does not seems to work well. If I add this part of code after placing a bunch of my checkpoint, the last one is indeed changed, but if i then duplicate this last one, every other one duplicta from this one will have a changed appearance too.

Thanks for anyone who will be willing to help a stupid guy like me, because i know it’s a stupid issue ^^’

Thanks again.

Okay, I’ll try that? Weird, because it’s what I tried and it did not gave me the results I wanted, but i’ll re-try that :slight_smile:

Okay, so, I tried it, and it, in fact, work, but it’s not as flexible as I’d like to. I would like to able to remove one object from this list, and all the index re-order themself correctly (If I have 10 items, and remove the 4th one, the index will not reorder themselves to finish at 9.). How would you go about it ?