Randomly receive a phone call

This commit is contained in:
jeanpatrick.guerrero@gmail.com 2015-04-17 20:48:44 +02:00 committed by Vanessa Ezekowitz
parent ff6073664d
commit 95c89f7cfd
3 changed files with 14 additions and 0 deletions

View File

@ -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.

View File

@ -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
})

Binary file not shown.