Definition
SetWaterScriptStringVariable(string waterName, string variable, string value)
Description
This function sets the value of the String 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 String variable defined in the script attached to the water object waterName.
value
Specifies the value of the String variable to be set.
Example
--script name is SetWaterScriptStringVariable.lua attached a to game object such as light function Init() SetWaterScriptStringVariable("water1", "a", "hello") end function Update() end
Assuming that the variable “a” is defined in the script attached to the water object “water1”, SetWaterScriptStringVariable function sets the value of “a” to “hello”.
SetWaterScriptStringVariable