DModelPanel.GetCamPos

From GMod Wiki

Jump to: navigation, search
Function
Syntax DModelPanel.GetCamPos( )
Description:
Gets the camera's position relative to the model
Returns: Vector
In Object: DModelPanel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DModelPanel.GetCamPos]DModelPanel.GetCamPos [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the camera's position relative to the model .
Used onNewerClient.png
Code
local DModelPanel = vgui.Create( "DModelPanel" )
DModelPanel:SetCamPos(Vector(50,50,50))
PrintTable(DModelPanel:GetCamPos())
OutputReturns "Vector 50,50,50" in the console.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox