here it works
result=linepick(x,y,z,x2-x,y2-y,z2-2,0.1)
where x,y,z is the start position and x2,y2,z2 is the end position of the pick. Or use w,h,d instead of x-x2 etc.
Isn't there an example in the docs?
You can also check if things are working correctly, when you use Camerapick with mouseX/Y.
Example:
cube=createcube()
entitypickmode cube,2
p=linepick(0,0,-10,0,0,20,.1)
print p
waitkey()
result=linepick(x,y,z,x2-x,y2-y,z2-2,0.1)
where x,y,z is the start position and x2,y2,z2 is the end position of the pick. Or use w,h,d instead of x-x2 etc.
Isn't there an example in the docs?
You can also check if things are working correctly, when you use Camerapick with mouseX/Y.
Example:
cube=createcube()
entitypickmode cube,2
p=linepick(0,0,-10,0,0,20,.1)
print p
waitkey()