A while ago I received this code, to check from the initial position to the destination position.
However it doesn't seem to be working when I do a simple check. Light turns on if there is no object between the two points, and off when there is an obstruction.

And it does when I do from a different place, what the freak?

Yes, the dungeon has the pickmode set.
Function Line_Pick(sx#,sy#,sz#,dx#,dy#,dz#, radius#=1) Return (LinePick(sx,sy,sz,sx-dx,sy-dy,sz-dz, radius#)) End Function
However it doesn't seem to be working when I do a simple check. Light turns on if there is no object between the two points, and off when there is an obstruction.

And it does when I do from a different place, what the freak?

Yes, the dungeon has the pickmode set.