Glad it helped.
Just wondering, any way to make those Pulses instead of seconds?
Why would you want to? I mean you have decimal point seconds at your disposal.
Well anyway if your really so set on it.
Add an integer property named “cpulse” (no quotes)
cont = GameLogic.getCurrentController()
own = cont.getOwner()
act = cont.getActuator("act")
own.cpulse += 1
x = numberofpulsesbeforeshot
if own.cpulse > x:
own.cpulse = 0
I didn’t test this out, but technically at every “pulse” (script pass) the “cpulse” will increment, and then you can determine the number of pulses by reading “own.cpulse”.
However as I said, I didn’t test this out so I’m not sure if it will work as predicted.
Stick with time, is my advice.