Set3DSoundScriptDoubleVariable

Definition

Set3DSoundScriptDoubleVariable(string 3DSoundName, string variable, double value)

Description

This function sets the value of the Double variable defined in the script attached to the 3DSoundName 3D sound object to value.

Parameters

3DSoundName
Specifies the name of the 3D sound object.

variable
Specifies the name of the Double variable defined in the script attached to the 3DSoundName 3D sound.

value
Specifies the Double value for the variable variable.

Example

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

function Init()
    Set3DSoundScriptDoubleVariable("sound1""a", 1.0)
end

function Update()

end
Assuming that the variable “a” is defined in the script attached to the 3D sound object “sound1”Set3DSoundScriptDoubleVariable function sets the  “a” variable to 1.0.
adminSet3DSoundScriptDoubleVariable