function findNearbyPlayers (server-side)
Available since version: 0.2.1
This function will search for nearest players, that matches given query arguments.
Declaration
array[int] findNearbyPlayers(Vec3 position, int radius, string world, int virtual_world = 0)
Parameters
Vec3position: the centroid position.intradius: the maximum radius to search from centroid.stringworld: the world used to find players.intvirtual_world: the virtual world used to find players.
Returns array[int]
ids of nearby players.