Getting the nearest player

Discussion in 'Plugin Development' started by ThatGuyWhoDied13, Dec 10, 2013.

Thread Status:
Not open for further replies.
  1. Hey, How would I get the nearest player closest to (Player) p?
     
  2. Offline

    The_Doctor_123

    Iterate through all players in the world and check the distance squared between the player and each player in the array.
     
    KevyPorter and Chinwe like this.
Thread Status:
Not open for further replies.

Share This Page