Hi Uncle Same,
You taxed me too much last year so I won't answer your post.

Just kidding!
You first use the command "pick screen". This command takes in the parameters: xScreen, yScreen, and distance. You plug in the mouse positions like this:
PICK SCREEN mousex(), mousey(), 1000
I picked a 1000 just to give some distance into the 3d scene. Now, dbpro has stored that new 3d position in "get pick vector x,y,z" commands. So now let's create an object in our scene.
MAKE OBJECT SPHERE 1, 100
Now let's go ahead and select that object using the command "object intersect" AND store the 'get pick vectors' and the object's position and the camera's position in variables.
vectorX# = get pick vector x
vectorY# = get pick vector y()
vectorZ# = get pick vector z()
objPosX# = object position x(1)
objPosY# = object position y(1)
objPosZ# = object position z(1)
camPosX# = camera position x()
camPosY# = camera position y()
camPosZ# = camera position z()
disVar# = intersect object(objNum, camPosX#, camPosY#, camPosZ#, vectorX#, vectorY#, vectorZ#)
Now, we test if it hit the cube I had made or not.
if disVar# = 0 THEN hide object bounds 1
if disVar# > 0 THEN show object bounds 1
Now there you have it!!!! Object selection.
Here is an example and a function if you still need help.
Rem Project: Object Selection Test
Rem Created: 10/21/2005 10:34:41 AM
Rem ***** Main Source File *****
sync on : sync rate 30
make object sphere 1, 100
do
objectSelection(1)
sync
loop
function objectSelection(objNum)
if mouseclick() = 1
pick screen mousex(), mousey(), 1000
vectorX# = get pick vector x()
vectorY# = get pick vector y()
vectorZ# = get pick vector z()
objPosX# = object position x(objNum)
objPosY# = object position y(objNum)
objPosZ# = object position z(objNum)
camPosX# = camera position x()
camPosY# = camera position y()
camPosZ# = camera position z()
disVar# = intersect object(objNum, camPosX#, camPosY#, camPosZ#, vectorX#, vectorY#, vectorZ#)
if disVar# = 0 THEN hide object bounds objNum
if disVar# > 0 THEN show object bounds objNum
endif
endfunction
Now you know how to select an object so create the next great video game!
go to my website to download cool new games:
www.fishbrosentertainment.net