SetSound3DLocation: Difference between revisions
From Onset Developer Wiki
No edit summary |
No edit summary |
||
(One intermediate revision by one other user not shown) | |||
Line 7: | Line 7: | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|sound|The sound identifier.}} | {{FuncParam|sound|The sound identifier.}} | ||
{{FuncParam|x| | {{FuncParam|x|The X axis}} | ||
{{FuncParam|y| | {{FuncParam|y|The Y axis}} | ||
{{FuncParam|z| | {{FuncParam|z|The Z axis}} | ||
{{FuncReturnValue| | {{FuncReturnValue|Returns '''true''' on success.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
SetSound3DLocation(soundId, x, y, z) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{SoundFunctions}} |
Latest revision as of 18:40, 30 August 2020
Description
Sets the location of a 3d sound.
Syntax
SetSound3DLocation(sound, x, y, z)
Parameters
- sound
The sound identifier. - x
The X axis - y
The Y axis - z
The Z axis
Return Value
- Returns true on success.
Example
SetSound3DLocation(soundId, x, y, z)