Description
The player hit by the ray cast (or null if no player is hit). Ray casts ignore players with "Phased Out" status.
For a more in-depth guide on ray casts, check out Ray casts and You
Snippet
Ray Cast Hit Player(Vector(0, 0, 0), Vector(0, 0, 0), All Players(All Teams), Event Player, True);
Properties
Returns: Player
Parameters: Start Pos, End Pos, Players To Include, Players To Exclude, Include Player Owned Objects
Start Pos
Type: Position, Default: Vector
The start position for the ray cast. If a player is provided, a position 2 meters above the player's feet is used.End Pos
Type: Position, Default: Vector
The end position for the ray cast. If a player is provided, a position 2 meters above the player's feet is used.Players To Include
Type: Array (Player), Default: All Players
Which players can be hit by this ray cast.Players To Exclude
Type: Array (Player), Default: Event Player
Which players cannot be hit by this ray cast. This list takes precedence over players to include.Include Player Owned Objects
Type: Boolean, Default: True
Whether player-owned objects (such as barriers or turrets) should be included in the ray cast.