Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
- Code: Select all
minetest.line_of_sight(pos1,pos2,stepsize) ->true/false
^ checkif there is a direct line of sight between pos1 and pos2
For some reason when I call this function it only ever returns the given stepsize or nil.
This seems strange since the only reference to it I can find is in environment.cpp
https://github.com/minetest/minetest/blob/master/src/environment.cpp#L357
This looks like it should indeed return true or false.