It's simple. THe entities you may pick must have their pickmode set, see ENtityPickmode.
Everything else is explained in http://www.blitzbasic.com/b3ddocs/command.php?name=LinePick&ref=goto
cube1=createcube()
positionentity cube1,0,0,50
entitypickmode cube1,2
pick=linepick(0,0,0,0,0,100)
if pick=cube1 then print "picked the cube mesh"
see also:
http://www.blitzbasic.com/b3ddocs/command.php?name=pick&ref=goto
Everything else is explained in http://www.blitzbasic.com/b3ddocs/command.php?name=LinePick&ref=goto
cube1=createcube()
positionentity cube1,0,0,50
entitypickmode cube1,2
pick=linepick(0,0,0,0,0,100)
if pick=cube1 then print "picked the cube mesh"
see also:
http://www.blitzbasic.com/b3ddocs/command.php?name=pick&ref=goto