Get a toggle chip and a timer chip. When the toggle is set to 1, the timer starts counting up. Get a bunch of greater than chips to check when the timer is >1, >2, >3 and >4.
I'm new here and right now I'm a bit brain dead so it would be awesome if I could get some help!
What I'm aiming for:
A wire setup using indicators that, when activated by Mouse 1 on an Adv. Pod Controller, counts down from 4(seconds) to 0 while holding Indicator Color A. When it gets to 0 it stops and the Indicator Color B until it is activated again.
What this will be used for:
I'm currently building a heavily armed ship for a space build server. It has 16 gauss lasers lining each side which take ~4 seconds to cool down/recharge. So I decided that indicators at the firing station would optimize firing time.
I hope the description wasn't confusing.
Thank you,
Thoth
I should also explain that I've attempted to do this using basic wire and failed pretty badly.
Last edited by BluThoth; 08-27-2009 at 10:33 PM.
Get a toggle chip and a timer chip. When the toggle is set to 1, the timer starts counting up. Get a bunch of greater than chips to check when the timer is >1, >2, >3 and >4.
SVN Tutorial
My SVN:Get dropbox and get 250 MB extra space: DropboxCode:http://divranspack.googlecode.com/svn/trunk/%20divranspack/
Thank you for your help Divran! I gave it a try but I don't think this is what I was looking for.
I actually followed this tutorial on youtube [ame="http://www.youtube.com/watch?v=4erfOSudVUQ"]YouTube - GMod wire tutorial: A timer that resets at zero[/ame] but I added a toggle chip and wired "run" from the timer the toggle chip, wired "clk" to the button, wired "toggle on" to a "greater than"(Subtract > Value 0), wired "toggle off" to an "equal"(Value 0 = Subtract) and wired an indicator to an "equal" (subtract = Value 0).
This works ok but theres a catch, when the timer gets to 0 it stops and the indicator comes on, just like I want, but I press the button again and the timer resets to 4 but the timer doesn't start until I press the button for a second time. I think I may have done something wrong, can you see a way I can fix it?
Also, is there a way to squash this down into an E2, I've been trying to learn E2 but it just doesn't seem to like me :P
Bookmarks