Garry's Mod Wiki

Log in to edit

EyeVector

<function name="EyeVector" parent="Global" type="libraryfunc"> <description> Returns the normal vector of the current render context as calculated by <page>GM:CalcView</page>, similar to <page>Global.EyeAngles</page>. <bug issue="2516">This function is only reliable inside rendering hooks.</bug> </description> <realm>Client</realm> <rets> <ret name="" type="Vector">View direction of the currently rendered scene.</ret> </rets> </function>