SetVideoScriptDoubleVariable

Definition

SetVideoScriptDoubleVariable(string videoName, string variable, double value)

Description

This function sets the value of the Double 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 Double variable defined in the script attached to the video object videoName.

value
Specifies the value of the Double variable to be set.

Example

--script name is SetVideoScriptDoubleVariable.lua attached a to game object such as light

function Init()
    SetVideoScriptDoubleVariable("video1""a", 1.0)
end

function Update()

end
Assuming that the variable “a” is defined in the script attached to the video object “video1”SetVideoScriptDoubleVariable function sets the value of “a” to 1.0.
adminSetVideoScriptDoubleVariable