DModelPanel.GetAmbientLight

From GMod Wiki

Jump to: navigation, search
Function
Syntax DModelPanel.GetAmbientLight( )
Description:
Gets the color of the ambient light source, like the sun
Returns: Color
In Object: DModelPanel
Realm: NewerClient.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=DModelPanel.GetAmbientLight]DModelPanel.GetAmbientLight [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionGets the color of the ambient light source, like the sun.
Used onNewerClient.png
Code
local DModelPanel = vgui.Create( "DModelPanel" )
PrintTable(DModelPanel:GetAmbientLight())
OutputReturns "Table color" in the console.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox