GetVSceneScriptDoubleVariable

Definition

double GetVSceneScriptDoubleVariable(string variable)

Description

This function gets the value of the Double variable defined in the script attached to the VScene Script object.

Parameters

variable
Specifies the name of the Double variable defined in the script attached to the VScene Script object.

Return Value

Returns the value of the Double variable defined in the script attached to the VScene Script object.

Example

--script name is GetVSceneScriptDoubleVariable.lua attached a to game object such as water

return_value = 0.0

function Init()
    return_value = GetVSceneScriptDoubleVariable("a")
end

function Update()

end
Assuming that the variable “a” is defined with the value 1.0 in the script attached to the VScene Script object, GetVSceneScriptDoubleVariable function returns the value 1.0.
adminGetVSceneScriptDoubleVariable