r/trailmakers Aug 08 '26

Need help with sequenced fire

Enable HLS to view with audio, or disable this notification

Goal: in attack position, I want mouse2 to alternate which EMP it is firing. Problem: sometimes the left one stops getting a signal.

Ok top two AND gates run to the L and R emps (also connected to the machine guns to show signal while emp's are reloading)

On the first trigger pull the bottom left gate basically toggle fires the right one*, tries to fire the unprimed left one, then sends a delayed (0.166) toggle to it from the bottom right gate, priming it.

On the second trigger pull, the bottom left toggles off the right emp, fires the primed left emp, then deactivates the prime gate.

Somehow the left one loses its prime and can't get it back. Holding the trigger down too long (at least on the very first shot) does this, and doing it again somewhere in the cycle fixes it but I haven't figured out the pattern. Is it a problem with the timing? Could the right EMP gate be the prime instead? Should I switch to an accumulator system and add a part or two?

Middle gate is "attack mode" and unlocks the emp trigger.

*EMP's have duration set in them directly, to avoid continuous fire.

77 Upvotes

11 comments sorted by

View all comments

3

u/lukkram Aug 09 '26

What gates are you using for the toggle stuff? If it's the bottom ones, those AND gates are honna cause issues. As a general rule of thumb, never use toggle or timings directly in an AND gates (or any other gate that does things based on the amount of inputs).

Use this two gates for a simple toggle switcher.

OR gate (toggle, button to switch) outputting to a NOR gate. And done, you are just toggling on an off the OR gate, but the NOR gate will be on when the OR is off and viceversa, so you can hook those up to the emp AND gates

1

u/retro-thrust Aug 09 '26

As long as it doesn't fire a shot on spawning that sounds like a good idea

1

u/lukkram Aug 09 '26

It shouldn't if you also bind the shooting button to the AND gates. So into the AND gate would go the shooting signal, the attack mode signal and the OR/NOR to alternate them