+ Reply to Thread
Results 1 to 3 of 3

Thread: Wire timer help

  1. #1
    Wire Noob BluThoth's Avatar
    Join Date
    Aug 2009
    Posts
    6

    Default Wire timer help

    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.

  2. #2
    No u Divran's Avatar
    Join Date
    Jul 2008
    Location
    Sweden
    Posts
    4,582

    Default Re: Wire timer help

    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:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  3. #3
    Wire Noob BluThoth's Avatar
    Join Date
    Aug 2009
    Posts
    6

    Default Re: Wire timer help

    Quote Originally Posted by Divran View Post
    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.
    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

+ Reply to Thread

Similar Threads

  1. Timer in e2??
    By fredefl in forum Expression 2 Discussion & Help
    Replies: 5
    Last Post: 08-01-2009, 05:18 AM
  2. [REQUEST] Conna's tools timer in wire.
    By Klaas Albers in forum Gate Nostalgia (Old School Wiring) Discussion & Help
    Replies: 4
    Last Post: 09-27-2008, 05:07 AM
  3. Up/Down Timer
    By ninja_danz0r in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 06-23-2007, 06:19 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots