util.GetSunInfo
From GMod Wiki
Function | |
Syntax |
util.GetSunInfo( ) Where is this used? |
Description: | |
Returns info about the sun | |
Returns: | Table |
Part of Library: | Util |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=Util.GetSunInfo]Util.GetSunInfo [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Gets the sun information table. |
---|---|
Used on | |
Code | local sun = util.GetSunInfo() |
Output | N/A |
Additional Notes
- Returns nil if there is no sun.
- sun.obstruction is a decimal number describing how much the sun is blocked.
- sun.direction is a direction vector.