mirror of
https://github.com/minetest-mods/teleport-request.git
synced 2025-01-22 21:01:25 +01:00
Add sound to /tpr and /tphr
This commit is contained in:
parent
05d88072ef
commit
14bb394336
7
init.lua
7
init.lua
@ -193,8 +193,11 @@ local function tpr_accept(name, param)
|
|||||||
|
|
||||||
minetest.chat_send_player(name2, "Request Accepted!")
|
minetest.chat_send_player(name2, "Request Accepted!")
|
||||||
minetest.chat_send_player(name, chatmsg)
|
minetest.chat_send_player(name, chatmsg)
|
||||||
|
|
||||||
target:setpos(find_free_position_near(source:getpos()))
|
local target_coords=source:getpos()
|
||||||
|
target:setpos(find_free_position_near(target_coords))
|
||||||
|
minetest.sound_play("whoosh", {pos = target_coords, gain = 0.5, max_hear_distance = 10})
|
||||||
|
parti2(target_coords)
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_chatcommand("tpr", {
|
minetest.register_chatcommand("tpr", {
|
||||||
|
Loading…
Reference in New Issue
Block a user