Definition
SetLightScriptBoolVariable(string lightName, string variable, bool value)
Description
This function sets the value of the Boolean variable defined in the script attached to the lightName light object.
Parameters
lightName
Specifies the name of the light object.
variable
Specifies the name of the Boolean variable defined in the script attached to the lightName light.
value
Specifies the value of variable variable to be set.
Example
--script name is SetLightScriptBoolVariable.lua attached a to game object such as water function Init() SetLightScriptBoolVariable("light1", "a", true) end function Update() end
Assuming that the variable “a” is defined in the script attached to the light object “light1”, SetLightScriptBoolVariable function sets the value of “a” to true.