aboutsummaryrefslogtreecommitdiff
path: root/doc/client_lua_api.txt
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2020-11-04 12:28:00 +0100
committerElias Fleckenstein <eliasfleckenstein@web.de>2020-11-04 12:28:00 +0100
commitf1d9ac014efc6403e73223f36d3dbb7f5ed50236 (patch)
treeae9acb74c6a662a8697235f5ca1446e5e7a1e6b3 /doc/client_lua_api.txt
parent06b72069d8d29c109b8847c9e4ff7948cd79f632 (diff)
downloaddragonfireclient-f1d9ac014efc6403e73223f36d3dbb7f5ed50236.tar.xz
Moved Killaura to Lua; Added ForceField; Added Friendlist; Added ClientObjectRef:is_local_player(); Documented LocalPlayer:get_object()
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 2daac87fe..c332ca4c3 100644
--- a/doc/client_lua_api.txt
+++ b/doc/client_lua_api.txt
@@ -1296,6 +1296,8 @@ Methods:
* change a value of a previously added HUD element
* element `stat` values: `position`, `name`, `scale`, `text`, `number`, `item`, `dir`
* Returns `true` on success, otherwise returns `nil`
+* `get_object()`
+ * Returns the ClientObjectRef for the player
### Settings
An interface to read config files in the format of `minetest.conf`.
@@ -1336,6 +1338,7 @@ This is basically a reference to a C++ `GenericCAO`.
* `get_acceleration()`: returns the acceleration, a vector
* `get_rotation()`: returns the rotation, a vector (radians)
* `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