Garry's Mod Wiki

Revision Difference

Player:GetEyeTraceNoCursor#528775

<function name="GetEyeTraceNoCursor" parent="Player" type="classfunc"> <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 every frame. ⤶ See also <page>Player:GetEyeTrace</page>⤶ Returns the trace according to the players view direction, ignoring their mouse (holding <key>C</key> and moving the mouse in Sandbox). The results of this function are **cached** clientside every frame. ⤶ Uses <page>util.GetPlayerTrace</page> internally and is therefore bound by its limits.⤶ ⤶ See also <page>Player:GetEyeTrace</page>.⤶ </description> <realm>Shared</realm> <file line="194-L213">gamemodes/base/gamemode/obj_player_extend.lua</file>⤶ <rets> <ret name="" type="table">Trace result. See <page>Structures/TraceResult</page></ret>⤶ <ret name="" type="table">Trace result. See <page>Structures/TraceResult</page>.</ret>⤶ </rets> </function>