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