Ok so I have a fps engine that i'm working on and the way i'v choose to fire the automatic weapons is using timers. But it isn't working :/
yes i have looked at TDK's timer tutorial.
here is the code im basicly using

working):
delay = 500
kick=50
t1=timer()
do
cls
time = ((Timer()-t1))
print time
if fire = 1 then print "ZOMG IT WORKS!!!"
if time = delay
fire=1
ENDIF
if time = delay+kick
fire=0
t1=timer()
ENDIF
sync
loop
here is the code in my game

not working)
time = ((Timer()-t1))
print time
if fire = 1 then print "ZOMG IT WORKS!!!"
if time = delay
fire=1
ENDIF
if time = delay+kick
fire=0
t1=timer()
ENDIF
`control iorn shighting
if mouseclick()=2 or mouseclick() = 3 && fire = 1
gunOffsetX = 0.0
gunOffsetY = -15.0
if mouseclick() = 2
gunOffsetZ = 25.0
endif
if mouseclick() = 3
gunOffsetZ = 20.0
endif
So any ideas guys?
oh btw:
delay is how long it takes for the gun to start fireing
kick is the time that the kickback takes up
My software never has bugs. It just develops random features.