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