DModelPanel/GetLookAng

From Garry's Mod
Revision as of 08:26, 19 September 2014 by Microflash (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
 DModelPanel:GetLookAng( )

Contents

DescriptionPanelFunc

Returns the angles of the model viewing camera. Is nil until changed with DModelPanel:SetLookAng.

Returns

Angle

The angles of the camera.

Examples

Example

Prints out the default camera angles.

local mdl = vgui.Create("DModelPanel")
mdl:SetPos(20, 20)
mdl:SetSize(200, 200)
mdl:SetModel("models/props_junk/watermelon01.mdl")

print(mdl:GetLookAng())

Output:

nil
Personal tools
Navigation