aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorstujones11 <stujones11@server.fake>2013-12-11 20:33:39 +0000
committerShadowNinja <shadowninja@minetest.net>2013-12-12 16:11:00 -0500
commitd9ef072305b92b020ebe473765118cca0e23608a (patch)
treed3232745cfe75bed24cbaeff33c1a11409bbd139 /doc
parent33de69a173a3646d8f5b9bf91b3e48d76cd40ae6 (diff)
downloadminetest-d9ef072305b92b020ebe473765118cca0e23608a.tar.gz
minetest-d9ef072305b92b020ebe473765118cca0e23608a.tar.bz2
minetest-d9ef072305b92b020ebe473765118cca0e23608a.zip
Make line_of_sight return blocking node position
Diffstat (limited to 'doc')
-rw-r--r--doc/lua_api.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index ae7144442..a8b671eb6 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -1308,8 +1308,9 @@ minetest.set_mapgen_params(MapgenParams)
^ flags and flagmask are in the same format and have the same options as 'mgflags' in minetest.conf
minetest.clear_objects()
^ clear all objects in the environments
-minetest.line_of_sight(pos1,pos2,stepsize) ->true/false
-^ checkif there is a direct line of sight between pos1 and pos2
+minetest.line_of_sight(pos1, pos2, stepsize) -> true/false, pos
+^ Check if there is a direct line of sight between pos1 and pos2
+^ Returns the position of the blocking node when false
^ pos1 First position
^ pos2 Second position
^ stepsize smaller gives more accurate results but requires more computing