Page 1 of 1

[Solved] minetest.line_of_sight

Posted: Sat Aug 03, 2019 06:10
by Extex
How do i check the position of the node within the line of sight?

Re: minetest.line_of_sight

Posted: Sat Aug 03, 2019 07:35
by duane
Extex wrote:How do i check the position of the node within the line of sight?
https://github.com/minetest/minetest/bl ... .txt#L4297

Re: minetest.line_of_sight

Posted: Sat Aug 03, 2019 18:27
by Extex
I know but how do I make it return the pos?
All it does for me is return the boolean
Am I doing something wrong?

local view = minetest.line_of_sight(pos, new_pos, 1)

Re: minetest.line_of_sight

Posted: Sat Aug 03, 2019 21:10
by AiTechEye
local a,b = minetest.line_of_sight(pos1, pos2)

Re: [Solved] minetest.line_of_sight

Posted: Sun Aug 04, 2019 23:27
by Extex
Thanks it worked!