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