Garry's Mod Wiki

Revision Difference

Entity:EyeAngles#515708

<function name="EyeAngles" parent="Entity" type="classfunc">⤶ <description>⤶ Returns the direction a player/npc/ragdoll is looking as a world-oriented angle.⤶ ⤶ <bug issue="1150">This can return an incorrect value in pods.</bug>⤶ ⤶ <bug issue="2620">This can return an incorrect value in jeeps when used with <page>Player:EnterVehicle</page>.</bug>⤶ </description>⤶ <realm>Shared</realm>⤶ <rets>⤶ <ret name="" type="Angle">eyeAng</ret>⤶ </rets>⤶ </function>⤶ ⤶ <example>⤶ <description>Print the local player's angles</description>⤶ <code>print(LocalPlayer():EyeAngles())</code>⤶ <output>When looking straight down, it might return Angle(89,-175.38,0)</output>⤶ ⤶ </example>