Definition
Set3DSoundScriptBoolVariable(string 3DSoundName, string variable, bool value)
Description
This function sets the value of the Boolean 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 Boolean variable defined in the script attached to the 3DSoundName 3D sound.
value
Specifies the Boolean value for the variable variable.
Example
--script name is Set3DSoundScriptBoolVariable.lua attached a to game object such as water function Init() Set3DSoundScriptBoolVariable("sound1", "a", true) end function Update() end
Assuming that the variable “a” is defined in the script attached to the 3D sound object “sound1”, Set3DSoundScriptBoolVariable function sets the “a” variable to true.
Set3DSoundScriptBoolVariable