SetCameraScriptDoubleVariable

Definition

SetCameraScriptDoubleVariable(string cameraName, string variable, double value)

Description

This function sets the value of the Double variable defined in the script attached to the cameraName engine camera object to value.

Parameters

cameraName
Specifies the name of the engine camera object.

variable
Specifies the name of the Double variable defined in the script attached to the cameraName engine camera.

value
Specifies the Double value for the variable variable.

Example

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

function Init()
    SetCameraScriptDoubleVariable("camera1""a", 1.0)
end

function Update()

end
Assuming that the variable “a” is defined in the script attached to the engine camera object “camera1”SetCameraScriptDoubleVariable function sets the  “a” variable to 1.0.
adminSetCameraScriptDoubleVariable