Definition
SetCameraScriptIntVariable(string cameraName, string variable, int value)
Description
This function sets the value of the Integer 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 Integer variable defined in the script attached to the cameraName engine camera.
value
Specifies the Integer value for the variable variable.
Example
--script name is SetCameraScriptIntVariable.lua attached a to game object such as water function Init() SetCameraScriptIntVariable("camera1", "a", 1) end function Update() end
Assuming that the variable “a” is defined in the script attached to the engine camera object “camera1”, SetCameraScriptIntVariable function sets the “a” variable to 1.
SetCameraScriptIntVariable