A little help with linepick
Blitz3D Forums/Blitz3D Programming/A little help with linepick| 
 | ||
| A while ago I received this code, to check from the initial position to the destination position. 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. | 
| 
 | ||
| Linepick itself doesn't return what you want. Use Return PickedEntity() to return the handle of the entity picked, if any. | 
| 
 | ||
| As you read the doc,Linepick return the first PickedEntity, so you can say LinePick return PickedEntity() !!! But, maybe your code is not good ... have you tried this one ? Function Line_Pick(sx#,sy#,sz#,dx#,dy#,dz#, radius#=1) Return (LinePick(sx,sy,sz,dx-sx,dy-sy,dz-sz, radius#)) End Function it seems to be more logical no ? if you want to check from Source to Dest ! | 
| 
 | ||
| No, you don't get credit for anything because I figured it out before I saw your post. :) | 
| 
 | ||
| very smart. Next time i won't care for you ;) |