Add ClientObjectRef.get_properties

This commit is contained in:
Elias Fleckenstein
2021-05-10 15:41:23 +02:00
parent c47eae3165
commit 7d7d4d675c
3 changed files with 30 additions and 12 deletions

View File

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