Workshop.codes
Create

Players Within Angle Of Player Last updated April 06, 2026

Description

Returns an array of players who fall within a specified angular cone in front of a reference player. Only players within the cone and optionally within a maximum range are included. Useful for frontal AOE targeting, vision-cone detection, and aimed ability previews.

Snippet

Players Within Angle Of Player(Event Player, All Teams, 45, 15);

Properties

Returns: Array
Parameters: Player, Team, Angle, Max Range

Player
Type: Player, Default: Event Player
The reference player whose facing direction defines the cone.

Team
Type: Team, Default: All Teams
The team filter applied to detected players.

Angle
Type: Number, Default: 45
The half-angle of the detection cone in degrees.

Max Range
Type: Number, Default: 10
The maximum distance in meters a player can be from the reference player to be included.

Workshop.codes