SetSunRadius: Difference between revisions

From Onset Developer Wiki
No edit summary
No edit summary
Line 6: Line 6:


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|radius|The float value between 0.0 to 4.0.}}
{{FuncParam|radius|A float value between 0.0 and 10.0, default: 0.5357}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|__EDIT_ME__}}
Line 13: Line 13:
<syntaxhighlight lang="Lua">
<syntaxhighlight lang="Lua">
AddEvent("OnPlayerSpawn", function()
AddEvent("OnPlayerSpawn", function()
SetSunRadius(4.0)
SetSunRadius(0.5357)
end)
end)
</syntaxhighlight>
</syntaxhighlight>

Revision as of 11:50, 24 July 2020

SetSunRadius

Type: Function
Context: Client
Introduced: v1.0

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

  • __EDIT_ME__

Example

AddEvent("OnPlayerSpawn", function()
	SetSunRadius(0.5357)
end)

See also