GetVideoScriptIntVariable

Definition

int GetVideoScriptIntVariable(string videoName, string variable)

Description

This function gets the value of the Integer variable defined in the script attached to the videoName video object.

Parameters

videoName
Specifies the name of the video object.

variable
Specifies the name of the Integer variable defined in the script attached to the videoName video object.

Return Value

Returns the value of the Integer variable defined in the script attached to the videoName video object.

Example

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

return_value = 0

function Init()
    return_value = GetVideoScriptIntVariable("video1""a")
end

function Update()

end
Assuming that the variable “a” is defined with the value in the script attached to the video object “video1”GetVideoScriptIntVariable function returns the value 1.
adminGetVideoScriptIntVariable