diff options
Diffstat (limited to 'doc/lua_api.txt')
-rw-r--r-- | doc/lua_api.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt index 6de255c0d..ddab47262 100644 --- a/doc/lua_api.txt +++ b/doc/lua_api.txt @@ -913,7 +913,8 @@ LuaEntitySAO-only: (no-op for other objects) - get_entity_name() (DEPRECATED: Will be removed in a future version) - get_luaentity() Player-only: (no-op for other objects) -- get_player_name(): will return nil if is not a player +- 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 - get_look_yaw(): yaw in radians (wraps around pretty randomly as of now) |