Добавить максимальную дистанцию проигрывания звуков дверей от позиции установки
This commit is contained in:
parent
a6bb728c5c
commit
d3aab548e5
@ -53,8 +53,9 @@ for i in ipairs(Porta_list) do
|
||||
minetest.sound_play("summer_porta_ch", {
|
||||
to_player = "",
|
||||
gain = 0.1,
|
||||
pos = pos,
|
||||
max_hear_distance = 16,
|
||||
})
|
||||
|
||||
end,
|
||||
})
|
||||
|
||||
@ -90,6 +91,8 @@ minetest.register_node("summer:porta_"..colour.."_ch", {
|
||||
minetest.sound_play("summer_porta_op", {
|
||||
to_player = "",
|
||||
gain = 0.1,
|
||||
pos = pos,
|
||||
max_hear_distance = 16,
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user