Workshop.codes
Create

Players in View Angle Last updated November 26, 2024

Description

The players who are within a specific view angle of a specific player's reticle, optionally restricted by team.

Unaffected by map geometry/line of sight and player status (dead/alive).
The angle is calculated from the players feet to the position of any other players feet.

Snippet

Players in View Angle(Event Player, Team(Team 1), 0);

Properties

Returns: Array (Player)
Parameters: Player, Team, View Angle

Player
Type: Player, Default: Event Player
The player whose view to use for the check.

Team
Type: Team, Default: Team
The team or teams on which to consider players.

View Angle
Type: Float, Default: Number
The view angle to compare against in degrees.

Workshop.codes