I need help make an effective way of shooting a bullet in an FPS. The I have it, is when the bullet reaches so far the bullet is hidden and the distance vriable is set to zero, the distance variable has to be set to zero before it can shoot another bullet.
if mouseclick()=1 and dst=0 and ammo>0
ammo=ammo-1
shot=1
dst=1
show object bullet
position object bullet,camera position x(),camera position y(),camera position z()
rotate object bullet,camera angle x(),camera angle y(),camera angle z()
endif
if object position x(bullet)>4000 or object position y(bullet)>4000 or object position z(bullet)>4000
hide object bullet
shot=0
dst=0
endif
if shot=1
move object bullet,250
endif
My problem is, when the player reaches a certain point, (however far the distance is before the bullet is deleted) the bullets keep shooting faster and faster, until they stop, and well that's not how it is supposed to be, if anyone could help, I would be extremely grateful
Im with stupid...