Skip to content

Ray Cast Hit Position

Description

The position where the ray cast hits a surface, object, or player (or the end pos if no hit occurs). 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 Position(Vector(0, 0, 0), Vector(0, 0, 0), All Players(All Teams), Event Player, True);

Properties

Returns: Vector 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: BooleanValue, Default: True Whether player-owned objects (such as barriers or turrets) should be included in the ray cast.

Type to search…

↑↓ navigate↵ selectEsc close