diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-05-10 15:41:23 +0200 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-05-10 15:41:23 +0200 |
commit | 7d7d4d675cd066a9dcd4467ff99c471a7ae09b88 (patch) | |
tree | a75a4a5234112a52ee81b7cf5c6f255105ab22ff /doc/client_lua_api.txt | |
parent | c47eae3165bc1229c5f08424933f8794a8ee3cf9 (diff) | |
download | dragonfireclient-7d7d4d675cd066a9dcd4467ff99c471a7ae09b88.tar.xz |
Add ClientObjectRef.get_properties
Diffstat (limited to 'doc/client_lua_api.txt')
-rw-r--r-- | doc/client_lua_api.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/client_lua_api.txt b/doc/client_lua_api.txt index d7a8b6bce..bc78d5dda 100644 --- a/doc/client_lua_api.txt +++ b/doc/client_lua_api.txt @@ -1411,9 +1411,10 @@ This is basically a reference to a C++ `GenericCAO`. * `is_player()`: returns true if the object is a player * `is_local_player()`: returns true if the object is the local player * `get_attach()`: returns parent or nil if it isn't attached. -* `get_nametag()`: returns the nametag (string) -* `get_item_textures()`: returns the textures -* `get_max_hp()`: returns the maximum heath +* `get_nametag()`: returns the nametag (deprecated, use get_properties().nametag instead) +* `get_item_textures()`: returns the textures (deprecated, use get_properties().textures instead) +* `get_max_hp()`: returns the maximum heath (deprecated, use get_properties().hp_max instead) +* `get_properties()`: returns object property table * `punch()`: punches the object * `rightclick()`: rightclicks the object * `remove()`: removes the object permanently |