Garry's Mod Wiki

Garry's Mod Wiki

  Vector DModelPanel:GetCamPos()

Description

Returns the position of the model viewing camera.

Returns

1 Vector
The position of the camera.

Example

Prints out the default camera position.

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

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated four times a day. Edits and history are not available.

Last Parsed: Loading...