Player.GetEyeTrace

From GMod Wiki

Jump to: navigation, search
Function
Syntax Player:GetEyeTrace( )
Description:
Traces a line from the player's view and returns a trace structure.
Returns: Table :traceres
In Object: Player
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Player.GetEyeTrace]Player.GetEyeTrace [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionTraces a line from player 1 and stores the results.
Used onNewerShared.png
Code
 
pl=player.GetByID(1)
traceRes=pl:GetEyeTrace()
 
OutputTrace results from player 1 stored in traceRes


Additional Notes

(Source Code)

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox