EnableWaterSunReflection

Definition

EnableWaterSunReflection(string waterName)

Description

This function enables the reflection of the sun in the water.

Parameters

waterName
Specifies the water name. You can also use the name “this” for this parameter. In this case, “this” refers to the water object that this script is attached to.

Example 1

function Init()
    EnableWaterSunReflection("water1")
end

function Update()

end
Enables the reflection of the sun in water “water1”

Example 2

--name of script is EnableWaterSunReflection2.lua
function Init()
    EnableWaterSunReflection("this")
end

function Update()

end
Enables the reflection of the sun in current water. For example, if you attach the EnableWaterSunReflection2.lua script to a water named “water1”, then the name “this” will be equivalent to “water1”.
adminEnableWaterSunReflection