SetCameraScriptBoolVariable

Definition

SetCameraScriptBoolVariable(string cameraName, string variable, bool value)

Description

This function sets the value of the Boolean 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 Boolean variable defined in the script attached to the cameraName engine camera.

value
Specifies the Boolean value for the variable variable.

Example

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

function Init()
    SetCameraScriptBoolVariable("camera1""a"true)
end

function Update()

end
Assuming that the variable “a” is defined in the script attached to the engine camera object “camera1”SetCameraScriptBoolVariable function sets the  “a” variable to true.
adminSetCameraScriptBoolVariable