Hey everyone
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?