#How do I make a projectile launcher shoot more than once on each trigger press?

9 messages · Page 1 of 1 (latest)

spark sand
#

And if I could add a cooldown

limber leaf
#

cool down you would have to do either a delay loop or save a timestamp, but to fire multiple projectiles you just need to configure the projectile launcher

vapid palm
vapid palm
#

Then like make it loop with a delay loop

#

Oh lmao

jagged wind
#

Cooldown:
get a float variable, on activation, check if [time get precise seconds] is greater than float variable > if true > set float variable to (time get precise seconds+cooldown duration) and continue your excecution from the float variable output. If false, do nothing because the system is on cooldown

Burst Fire: Get one delay per bullet, when pressed goes into delay 1, delay 1 shoots a bullet on run and ater delay activates delay 2, repeat step 2 for subsequent delays chips

Full auto:
You can limit a 30Hz event receiever to a lower Hz with a delay, wire the 30Hz to the run input, then from the delay output to the cancel input, and then the cancel -out-put is your final output that will control the projectile emitter. Set the float to something like 0.1 to 0.3, This way you're not shooting 30 bullets per second wich is a bit overkill and might lag. You can now run the 30 Hz into there with an if chip that says "If trigger/gun handle is held run 30 hz into the system"

vapid palm
jagged wind
#

true, but I imagine burst fire to be about 3 shots max, in wich case you're using less/same amount of circuits just using delay chips, wich are easier to understand for beginning circuiteers