aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2015-05-12 05:49:14 +0200
committerest31 <MTest31@outlook.com>2015-05-12 05:52:49 +0200
commitb4c3ff6eab197828d370c30d66e033cde9d2f13d (patch)
treeee4d2e18caa3f40a8d77b9aa2968cfba95fc7771 /doc
parent02805af36ed4f3f11738c5439b5edd9e1db659ea (diff)
downloadminetest-b4c3ff6eab197828d370c30d66e033cde9d2f13d.tar.gz
minetest-b4c3ff6eab197828d370c30d66e033cde9d2f13d.tar.bz2
minetest-b4c3ff6eab197828d370c30d66e033cde9d2f13d.zip
is_player() is no player-only function
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index 93387ef0b..8fda137ae 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -2387,6 +2387,7 @@ This is basically a reference to a C++ `ServerActiveObject`
* `position`: `{x=num, y=num, z=num}` (relative)
* `rotation`: `{x=num, y=num, z=num}`
* `set_properties(object property table)`
+* `is_player()`: returns true for players, false otherwise
##### LuaEntitySAO-only (no-op for other objects)
* `setvelocity({x=num, y=num, z=num})`
@@ -2404,7 +2405,6 @@ This is basically a reference to a C++ `ServerActiveObject`
* `get_luaentity()`
##### Player-only (no-op for other objects)
-* `is_player()`: true for players, false for others
* `get_player_name()`: returns `""` if is not a player
* `get_look_dir()`: get camera direction as a unit vector
* `get_look_pitch()`: pitch in radians