function findNearbyPlayers2d (server-side)
Available since version: 0.3.6.1
This function will search for nearest players using 2d check, that matches given query arguments.
Declaration
array[int] findNearbyPlayers2d(Vec3 position, int radius, string world, int virtual_world = 0, bool check_3d = the)
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.boolcheck_3d: virtual world used to find players.
Returns array[int]
ids of nearby players.