Workshop.codes
Create

Players Within Radius Last updated November 26, 2024

Description

An array containing all players within a certain distance of a position, optionally restricted by team and line of sight.

Snippet

Players Within Radius(Vector(0, 0, 0), 0, Team(Team 1), OFF);

Properties

Returns: Array (Player)
Parameters: Center, Radius, Team, LOS CHECK

Center
Type: Position, Default: Vector
The center position from which to measure distance.

Radius
Type: Float, Default: Number
The radius in meters inside which players must be in order to be included in the resulting array.

Team
Type: Team, Default: Team
The team or teams to which a player must belong to be included in the resulting array.

LOS CHECK
Type: LosCheck, Default: OFF
Specifies whether and how a player must pass a line-of-sight check to be included in the resulting array.

Workshop.codes