aboutsummaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2021-05-10 20:45:05 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2021-05-10 20:45:05 +0200
commitc86dcd0f682f76339989afec255bf3d7078db096 (patch)
treecd74cff6f879026a47c197545796aa2deb20ea15 /doc/client_lua_api.txt
parentb84ed7d0beb524a62070a503a40b78b77506b258 (diff)
downloaddragonfireclient-c86dcd0f682f76339989afec255bf3d7078db096.tar.xz
Add on_object_hp_change callback and nametag images
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r--doc/client_lua_api.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt
index 2728ed632..2e347ec47 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -766,6 +766,8 @@ Call these functions only at load time!
* `minetest.register_on_object_properties_change(function(obj))`
* Called every time the properties of an object are changed server-side
* May modify the object's properties without the fear of infinite recursion
+* `minetest.register_on_object_hp_change(function(obj))`
+ * Called every time the hp of an object are changes server-side
### Setting-related
* `minetest.settings`: Settings object containing all of the settings from the
@@ -1422,6 +1424,7 @@ This is basically a reference to a C++ `GenericCAO`.
* `punch()`: punches the object
* `rightclick()`: rightclicks the object
* `remove()`: removes the object permanently
+* `set_nametag_images(images)`: Provides a list of images to be drawn below the nametag
### `Raycast`