Support ambiance pitch variation

This commit is contained in:
Aaron Suen 2022-01-14 21:33:30 -05:00
parent d1b6c0333b
commit ec6a04c1ce

View File

@ -20,6 +20,7 @@ local function ambiance_core(def, getpos)
local opts = queue[i]
opts.name = opts.name or def.sound_name
opts.gain = opts.gain or def.sound_gain
opts.pitch = opts.pitch or def.sound_pitch
minetest.after(opts.delay, function()
nodecore.sound_play(opts.name, opts)
end)