SetSunLightIntensity

From Onset Developer Wiki
SetSunLightIntensity

Type: Function
Context: Client
Introduced: v1.0

Description

Set the specified sun light intensity for the client.

Syntax

SetSunLightIntensity(intensity)

Parameters

  • intensity
    The sun light intensity in float value between 0.0 to 4.0. Values out of range might result in weird or no behavior.

Return Value

  • __EDIT_ME__

Example

AddEvent("OnPlayerSpawn", function()
	SetSunLightIntensity(4.0) -- Set the sun light to 4.0
end)

See also