umm, I can't see the code i just put, ill put it again...
incase it does it again, ill just copy it to here too...
`this takes the bullet away if it hits the ground
bullx=object position x(1000)
bullz=object position z(1000)
bully=object position y(1000)
hitground=get ground height(1,bullx,bullz)
if bully<hitground
antishoot=0
hide object 1000
position object 1000,20,2000,20
hide sprite 19
endif
rem shoot
`this is where you shoot the bullet
if mouseclick()=1 and noshoot=0 and antishoot=1
position object 1000,cx#,cy#,cz#
show object 1000
set object to camera orientation 1000
noshoot=waiting
antishoot=0
show sprite 19
gosub shoot
endif
rem noshoot
`this makes sure you can't shoot your sniper and pistol like the machine gun
if noshoot>0 and antishoot=0 then gosub shoot
if noshoot=0
antishoot=1
hide object 1000
position object 1000,20,2000,20
endif
rem bullet hits com
`this is where the com dies
comdie:
z=rnd(2)+1
killcom=object collision(2,1000)
if killcom=1
hide object 1000
position object 1000,20,2000,20
texture object 2,z
endif
return
Rem Refresh Screen
Sync
position mouse 320,240
Loop
rem bullet shot
`this is where I am having my troubles
shoot:
move object 1000,100
dec noshoot
return
dang im hot...