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
Return
position
Arguments
Name: START POS
Description: The start position for the ray cast. If a player is provided, a position 2 meters above the player's feet is used.
Type: Position
Default: VECTORName: END POS
Description: The end position for the ray cast. If a player is provided, a position 2 meters above the player's feet is used.
Type: Position
Default: VECTORName: PLAYERS TO INCLUDE
Description: Which players can be hit by this ray cast.
Type:
Array: Player
Default: ALL PLAYERSName: PLAYERS TO EXCLUDE
Description: Which players cannot be hit by this ray cast. This list takes precedence over players to include.
Type:
Array: Player
Default: EVENT PLAYERName: INCLUDE PLAYER OWNED OBJECTS
Description: Whether player-owned objects (such as barriers or turrets) should be included in the ray cast.
Type: BooleanValue
Default: 'TRUE'