SetSkySaturation: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Function|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|SetSkySaturation(saturation)}} {{FuncParameters}} {{FuncParam|saturation|__EDIT_ME__}} {{FuncRetu...")
 
No edit summary
Line 1: Line 1:
{{Info|Function|Client|1.0}}
{{Info|Function|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|Set the sky saturation for the client.}}


{{FuncSyntax|SetSkySaturation(saturation)}}
{{FuncSyntax|SetSkySaturation(saturation)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|saturation|__EDIT_ME__}}
{{FuncParam|saturation|The saturation value in float between 0.0 to 4.0. The lower the more saturated.}}


{{FuncReturnValue|__EDIT_ME__}}
{{FuncReturnValue|__EDIT_ME__}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPlayerSpawn", function()
SetSkySaturation(4.0) -- Set the saturation to as low as possible
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
__EDIT_ME__
__EDIT_ME__

Revision as of 04:36, 17 November 2019

SetSkySaturation

Type: Function
Context: Client
Introduced: v1.0

Description

Set the sky saturation for the client.

Syntax

SetSkySaturation(saturation)

Parameters

  • saturation
    The saturation value in float between 0.0 to 4.0. The lower the more saturated.

Return Value

  • __EDIT_ME__

Example

AddEvent("OnPlayerSpawn", function()
	SetSkySaturation(4.0) -- Set the saturation to as low as possible
end)

See also

__EDIT_ME__