Create another array that mimics the pointArray of the areas. Except its a boolean this time.
i.e,
Dude dies in cave (pointArrayBoolean[integer of first array where the dude died] = true) - Sets the boolean for the specified area to true
Dude spawns anywhere BUT the cave (pointArrayBoolean[integer of first array where dude died] = false) - Resets the boolean to the area he died in before spawning
Happens again at a different area, but will not spawn at the same area he died in.
Create another array that mimics the pointArray of the areas. Except its a boolean this time. i.e, Dude dies in cave (pointArrayBoolean[integer of first array where the dude died] = true) - Sets the boolean for the specified area to true Dude spawns anywhere BUT the cave (pointArrayBoolean[integer of first array where dude died] = false) - Resets the boolean to the area he died in before spawning Happens again at a different area, but will not spawn at the same area he died in.