Garry's Mod Wiki

DModelPanel:GetLookAng

Angle DModelPanel:GetLookAng()

Description

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

Returns

1 Angle
The angles of the camera.

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

Page Links


Special Pages


Wikis

?

Render Time: 74ms

DB GetPage 33
Generate Html 5
SaveChanges (1) 13
Render Body 0
Render Sidebar 20