diff options
author | Rui <rui.minetest@gmail.com> | 2017-06-11 20:58:26 +0900 |
---|---|---|
committer | Loïc Blot <nerzhul@users.noreply.github.com> | 2017-06-11 13:58:26 +0200 |
commit | ff73c7a5da6ab8ac0bb678ebf25b83e805397029 (patch) | |
tree | 1e91e8226000250c4636bbb188330d105c85d019 /doc/lua_api.txt | |
parent | 03ff53e16bafe1aaa278625864c546a525d08dfc (diff) | |
download | minetest-ff73c7a5da6ab8ac0bb678ebf25b83e805397029.tar.gz minetest-ff73c7a5da6ab8ac0bb678ebf25b83e805397029.tar.bz2 minetest-ff73c7a5da6ab8ac0bb678ebf25b83e805397029.zip |
Sound: Add pitch option (#5960)
* Sound: Add pitch option
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 2bbf18310..28067eef1 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -622,12 +622,14 @@ Examples of sound parameter tables: { gain = 1.0, -- default fade = 0.0, -- default, change to a value > 0 to fade the sound in + pitch = 1.0, -- default } -- Play locationless to one player { to_player = name, gain = 1.0, -- default fade = 0.0, -- default, change to a value > 0 to fade the sound in + pitch = 1.0, -- default } -- Play locationless to one player, looped { @@ -658,6 +660,7 @@ one player using `to_player = name,` * e.g. `{}` * e.g. `{name = "default_place_node"}` * e.g. `{name = "default_place_node", gain = 1.0}` +* e.g. `{name = "default_place_node", gain = 1.0, pitch = 1.0}` Registered definitions of stuff ------------------------------- |