why can i not get my Bullets to move forward this code must be done with dark physics so i can shoot cloth
shoot:
`for
for b=4001 to 4100
`shoot
if mouseclick()=1 and ammo#>0 and active(b,1)=0 and (timer()-lasttime)>maxwait
position object b,cgx#,cgy#,cgz#
phy make rigid body dynamic sphere b
phy set rigid body linear velocity b,cgx#, cgy#,cgz#
set object to object orientation b,M_16
active(b,1)=1
active(b,2)=1000
show object b
ammo#=ammo#-1
lasttime=timer()
endif
`move bullet
if active(b,1)=1
move object b,2
active(b,2)=active(b,2)-1
endif
`stop when bullet run out
if active(b,2)<0
active(b,1)=0
active(b,2)=0
hide object b
endif
next b
return