I want to make a spawn point so the playable character can spawn there when he/she dies. I want to make it like how World of Warcraft has it so which ever spawn point you’re closet to when you die, you spawn in there. How do I do this?
Because this subject has been ask too much on Internet I can just say you to look here:
Little advice :
- Use an array of Spawn Point
- Check distance between your death position and the nearest point in your array
- Spawn your player at this place.
Last advice, next time search a little bit more before asking this here cause there is a lot of subject on this everywhere