Garry's Mod Wiki

Revision Difference

Global.EyeVector#514856

<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>⤶ ⤶ <example>⤶ <description>Print the view angles</description>⤶ <code>print( EyeVector() )</code>⤶ ⤶ </example>