SetSunRadius: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetSunRadius(radius)}} {{FuncParameters}} {{FuncParam|radius|__EDIT_ME__}} {{FuncReturnValue|__ED..." |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Function|Client|1.0}} | {{Info|Function|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Set the specified radius of the sun for the client.}} | ||
{{FuncSyntax|SetSunRadius(radius)}} | {{FuncSyntax|SetSunRadius(radius)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|radius| | {{FuncParam|radius|The float value between 0.0 to 4.0.}} | ||
{{FuncReturnValue|__EDIT_ME__}} | {{FuncReturnValue|__EDIT_ME__}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
AddEvent("OnPlayerSpawn", function() | |||
SetSunRadius(4.0) | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[SetSunAzimuth]] |
Revision as of 05:00, 17 November 2019
Description
Set the specified radius of the sun for the client.
Syntax
SetSunRadius(radius)
Parameters
- radius
The float value between 0.0 to 4.0.
Return Value
- __EDIT_ME__
Example
AddEvent("OnPlayerSpawn", function()
SetSunRadius(4.0)
end)