aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLoic Blot <loic.blot@unix-experience.fr>2015-03-18 10:03:51 +0100
committerLoic Blot <loic.blot@unix-experience.fr>2015-03-18 14:52:35 +0100
commit467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0 (patch)
treefc0258fd520517b9e490e515414aac57cecdb963 /doc
parent8f2e9bfbc2bba03e4bf3c0fcc4d4a36ac0c9569e (diff)
downloadminetest-467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.tar.gz
minetest-467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.tar.bz2
minetest-467fc0ddc912ae38c3bf9fcb99e0b66d7478eec0.zip
Add a Lua call to do damages / heals
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index d7e956087..81a35976b 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2336,6 +2336,7 @@ This is basically a reference to a C++ `ServerActiveObject`
* `right_click(clicker)`; `clicker` is another `ObjectRef`
* `get_hp()`: returns number of hitpoints (2 * number of hearts)
* `set_hp(hp)`: set number of hitpoints (2 * number of hearts)
+* `apply_damage(damage)`: set amount of damage to object. If damage < 0, heal the target
* `get_inventory()`: returns an `InvRef`
* `get_wield_list()`: returns the name of the inventory list the wielded item is in
* `get_wield_index()`: returns the index of the wielded item