Finding players within a radius of a position
š§ Logicā¢Updated 2 days agoā¢0 views
Use find.inSphere(pos, radius, filter) with a filter returning ent:isPlayer(), or find.allPlayers with a distance filter e.g. ply:getPos():getDistance(origin) <ā¦
How to find a player in a radius of a position (proximity detector)
Use find.inSphere(pos, radius, filter) with a filter returning ent:isPlayer(), or find.allPlayers with a distance filter e.g. ply:getPos():getDistance(origin) < 500 - check if the result table has entries (find returns an array, so test [1] rather than table.isEmpty).