Skip to content
Snippets Groups Projects
Commit 95c89f7c authored by jeanpatrick.guerrero@gmail.com's avatar jeanpatrick.guerrero@gmail.com Committed by Vanessa Ezekowitz
Browse files

Randomly receive a phone call

parent ff607366
No related branches found
No related tags found
No related merge requests found
......@@ -13,4 +13,6 @@ Licenses:
http://freesound.org/people/guitarguy1985/sounds/69384/
* For the book sound, Public Domain by mckinneysound's on http://www.freesfx.co.uk/
http://www.freesfx.co.uk/sfx/book?p=3
* For the phone ring, Public Domain by andyt's on http://www.freesfx.co.uk/
http://www.freesfx.co.uk/sfx/phone?p=5
* For all images and everything else, WTFPL.
......@@ -140,3 +140,15 @@ homedecor.register("telephone", {
collision_box = tel_cbox,
})
minetest.register_abm({
nodenames = "homedecor:telephone",
interval = 30,
chance = 10,
action = function(pos, node)
minetest.sound_play("homedecor_telephone_ringing", {
pos = pos,
gain = 1.0,
max_hear_distance = 10
})
end
})
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment