Definition
DisableWaterSunReflection(string waterName)
Description
This function disables 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() DisableWaterSunReflection("water1") end function Update() end
Disables the reflection of the sun in water “water1”
Example 2
--name of script is DisableWaterSunReflection2.lua function Init() DisableWaterSunReflection("this") end function Update() end
Disables the reflection of the sun in current water. For example, if you attach the DisableWaterSunReflection2.lua script to a water named “water1”, then the name “this” will be equivalent to “water1”.
DisableWaterSunReflection