SetSunRadius: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|radius| | {{FuncParam|radius|A float value between 0.0 and 10.0, default: 0.5357}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true'''.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | <syntaxhighlight lang="Lua"> | ||
AddEvent("OnPlayerSpawn", function() | AddEvent("OnPlayerSpawn", function() | ||
SetSunRadius( | SetSunRadius(0.5357) | ||
end) | end) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[ | * [[GetSunRadius]] |
Latest revision as of 09:34, 1 September 2020
Description
Set the specified radius of the sun for the client.
Syntax
SetSunRadius(radius)
Parameters
- radius
A float value between 0.0 and 10.0, default: 0.5357
Return Value
- Returns true.
Example
AddEvent("OnPlayerSpawn", function()
SetSunRadius(0.5357)
end)