Definition
SetWaterScriptIntVariable(string waterName, string variable, int value)
Description
This function sets the value of the Integer variable defined in the script attached to the water object waterName.
Parameters
waterName
Specifies the name of the water object.
variable
Specifies the name of the Integer variable defined in the script attached to the water object waterName.
value
Specifies the value of the Integer variable to be set.
Example
--script name is SetWaterScriptIntVariable.lua attached a to game object such as light function Init() SetWaterScriptIntVariable("water1", "a", 1) end function Update() end
Assuming that the variable “a” is defined in the script attached to the water object “water1”, SetWaterScriptIntVariable function sets the value of “a” to 1.
SetWaterScriptIntVariable