I need help with the following code:
sync on
set camera range 0,0.0000001,3000
load object "colt\H-Colt-Static.x",1
position object 1,0,0.75,0
yrotate object 1,90
load object "enfield\H-Enfield-Static.x",2
position object 2,0,0,0
yrotate object 2,90
load object "tommy\H-Tommy-Static.x",3
position object 3,0,-0.75,0
yrotate object 3,90
position camera 0,0,-2.5
do
text 0,0,str$(pick object(mousex(),mousey(),1,3))
if pick object(mousex(),mousey(),1,1)=1
text mousex()+20,mousey()+10,"Colt"
text mousex()+20,mousey()+20,"Hand Gun"
endif
if pick object(mousex(),mousey(),2,2)=2
text mousex()+20,mousey()+10,"Enfield"
text mousex()+20,mousey()+20,"Rifle"
endif
if pick object(mousex(),mousey(),3,3)=3
text mousex()+20,mousey()+10,"Tommy"
text mousex()+20,mousey()+20,"Machine Gun"
endif
sync
loop
Can anyone tell me how I can get this code to tell you what object the mouse is pointing at.