Players.GetFurthest

Declaration

Players.GetFurthest(Vector3 Position)

Description

Returns the Player object for the furthest player relative to Position. If not found, returns a Player object with ID set to -1.

--Prints out the name of the furthest player to the position in the Scripts Console
local position = V3(2, 1, 2);
local furthestPlayer = Players.GetFurthest(position);

Print(furthestPlayer.Name);

Declaration

Players.GetFurthest(Tile Tile)

Description

Returns the Player object for the furthest player relative to Tile. If not found, returns a Player object with ID set to -1.

--Prints out the name of the furthest player to the tile in the Scripts Console
local tile = World.GetTile(V2(1, 5), 0);
local furthestPlayer = Players.GetFurthest(position);

Print(furthestPlayer.Name);