Garry's Mod Wiki

Player:GetEyeTraceNoCursor

  table Player:GetEyeTraceNoCursor()

Description

Returns the trace according to the players view direction, ignoring their mouse (holding c and moving the mouse in Sandbox).

The results of this function are cached clientside every frame.

Uses util.GetPlayerTrace internally and is therefore bound by its limits.

See also Player:GetEyeTrace.

Returns

1 table
Trace result. See Structures/TraceResult.