How to get default value of an array

Hey everyone :slight_smile:

Description of my project:
I have made a replicated race system which awards players experience on entering an overlap and stores the player controllers of each player in an array.
There are 10 checkpoints in a race and the 10th one is the last checkpoint which I want to run extra code off.

I have prevented each player from gaining experience from re-entering the same checkpoint via this array.

I have also created a boolean which checks the checkpoints to see which is the last one in a lap.

What I want:
When a player enters the last checkpoint, I want the player to now be able to get experience from the other checkpoints again.
I know I can create two variables for the array and use one as the “default” variable which I can recall after entering the last checkpoint.

But I do not know how to implement this, I have looked online but no one gives examples of blueprint code.
I have included my code for reference if you guys can help me figure out where I need to get the original values of the array and how to remove a specific player from an array. (I do not want to remove all elements from the array as this will affect those who have yet to get to the last checkpoint, I want to ONLY remove the player from the array who enters the last checkpoint.

I have looked at remove index but I am not sure if that is the correct node to use?

this is a bit confusing so I will not try to fix your blueprint.

Some ideas you can try see if they work for you. have multiple arrays, have on initial array with the default values, then create a second array that you can manipulate or add or remove. If you want to “reset” this array just get the values from the first array.

You can also try the “Map” types of arrays, where you can add a label to a value. So you could have CheckPoint01, 02 and on. then access these values using this name label.