aboutsummaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
diff options
context:
space:
mode:
authorPerttu Ahola <celeron55@gmail.com>2012-03-27 00:37:31 +0300
committerPerttu Ahola <celeron55@gmail.com>2012-03-27 00:37:31 +0300
commit37b64ff616df3475e228d6beb3727de2afd2b6c2 (patch)
treedcdb6f5b14213dd5dfdb015c51046a0837e53c57 /doc/lua_api.txt
parenta2fd8d1db10bc5b018d40d9b9ffd8595c7543112 (diff)
downloadminetest-37b64ff616df3475e228d6beb3727de2afd2b6c2.tar.gz
minetest-37b64ff616df3475e228d6beb3727de2afd2b6c2.tar.bz2
minetest-37b64ff616df3475e228d6beb3727de2afd2b6c2.zip
Add minetest.after(time, func)
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt13
1 files changed, 8 insertions, 5 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 6d0071144..bfde0a870 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -425,6 +425,12 @@ minetest.get_modpath(modname) -> eg. "/home/user/.minetest/usermods/modname"
minetest.get_worldpath(modname) -> eg. "/home/user/.minetest/world"
^ Useful for storing custom data
+minetest.debug(line)
+^ Goes to dstream
+minetest.log(line)
+minetest.log(loglevel, line)
+^ loglevel one of "error", "action", "info", "verbose"
+
minetest.register_entity(name, prototype table)
minetest.register_abm(abm definition)
minetest.register_node(name, node definition)
@@ -461,11 +467,8 @@ minetest.sound_play(spec, parameters) -> handle
^ parameters = sound parameter table
minetest.sound_stop(handle)
-minetest.debug(line)
-^ Goes to dstream
-minetest.log(line)
-minetest.log(loglevel, line)
-^ loglevel one of "error", "action", "info", "verbose"
+minetest.after(time, func)
+^ Call function after time seconds
Global objects:
minetest.env - environment reference