Login
Create

Ray Cast Hit Position Last updated September 14, 2020

Description

The position where the ray cast hits a surface, object, or player (or the end pos if no hit occurs).

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: VECTOR

Name: 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: VECTOR

Name: PLAYERS TO INCLUDE
Description: Which players can be hit by this ray cast.
Type:
Array: Player
Default: ALL PLAYERS

Name: 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 PLAYER

Name: 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'

Elo Hell Logo_H-M-Dark
Join the Elo Hell Workshops Discord