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