Login
Create

Ray Cast Hit Normal Last updated September 14, 2020

Description

The surface normal at the ray cast hit position (or from end pos to start pos if no hit occurs).

For a more in-depth guide on ray casts, check out Ray casts and You

Return

direction

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: bool
Default: 'TRUE'

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