I have four variable's:
PlayerPosition
NPC1Position
NPC2Position
NPC3Position
Every time they overlap a waypoint there next waypoint is increased until they hit the last one and the it resets to one, This is how i am trying to determine the players current position(for a racing game).
But how can i determine which position he is in from this?
I know how to determine if he's in last place or first place, but i need to know if he's in second or third also..
Anyone have some knowledge they wish to share?