EnableWaterShadow

Definition

EnableWaterShadow(string waterName)

Description

This function enables the shadow of reflections of objects in 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()
    EnableWaterShadow("water1")
end

function Update()

end
Enables the shadow of reflections of objects in water “water1”.

Example 2

--name of script is EnableWaterShadow2.lua
function Init()
    EnableWaterShadow("this")
end

function Update()

end
Enables the shadow of reflections of objects in current water. For example, if you attach the EnableWaterShadow2.lua script to a water named “water1”, then the name “this” will be equivalent to “water1”.
adminEnableWaterShadow