cartographer/audio.lua
Hugues Ross ca910ad29d Documentation pass, part 1
- Also added more optional parameters to the gui api
2020-06-13 07:41:56 -04:00

15 lines
401 B
Lua

-- Audio API (Internal)
--
-- Contains functions for providing audio feedback
local audio = {
-- Play a feedback sound localized on the given player
--
-- sound: The sound to play
-- player: The player who triggered the sound
play_feedback = function(sound, player)
minetest.sound_play(sound, { pos=player:get_pos(), max_hear_distance=5 }, true);
end
};
return audio;