Support ambiance pitch variation
This commit is contained in:
parent
d1b6c0333b
commit
ec6a04c1ce
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user