+ Reply to Thread
Results 1 to 5 of 5

Thread: need alitle help with a custom gate plz

  1. #1
    Inactive metanight is on a distinguished road metanight's Avatar
    Join Date
    Nov 2008
    Posts
    7

    Default need alitle help with a custom gate plz

    hey guys can u help me with a chip expession. i want it to do this but i dont know how to do it right, outpute A = 1 if input A < 23 , outpute A = -1 if inpute A > 24

    its simple but i forgot how to word these type of things, its been so long since i made my own

  2. #2
    Banned isdevilis is infamous around these parts isdevilis's Avatar
    Join Date
    Sep 2008
    Posts
    12

    Default Re: need alitle help with a custom gate plz

    I dont know how but, garrysmod.com's wiki section on expression values might help

  3. #3
    Designated Druggie
    Asphid will become famous soon enough Asphid's Avatar
    Join Date
    Oct 2008
    Location
    In a house.
    Posts
    1,019

    Default Re: need alitle help with a custom gate plz

    In case you don't see the shoutbox,

    Code:
    if(A<23) {A=1} elseif(A>24) {A=-1}
    
    That's in E-Gate 2. EGate 1 would be

    Code:
    (A<23 ? 1 : (A>24 ? -1 : 0))
    
    or
    Code:
    A<23 -> A = 1; A>24 -> A = -1;
    
    One line or two, it doesn't matter.
    <Anticept>Will sex for food.
    <Beer>peanus, I like that
    <nath2008uk>I must play with black peanus
    <Jat Goodwin>i like the underage one
    <Black Phoenix>He's a good pedo

  4. #4
    Lurker pl0x is an unknown quantity at this point pl0x's Avatar
    Join Date
    Aug 2008
    Posts
    247

    Default Re: need alitle help with a custom gate plz

    and you cant have an output with the same name as the input, change output A to B

  5. #5
    Designated Druggie
    Asphid will become famous soon enough Asphid's Avatar
    Join Date
    Oct 2008
    Location
    In a house.
    Posts
    1,019

    Default Re: need alitle help with a custom gate plz

    Last Post: 11-08-2008

    When I answered, I assumed he meant it as a regulator type thing... if it gets too high, rest it or something.

    Looking back, it doesn't work like that.
    <Anticept>Will sex for food.
    <Beer>peanus, I like that
    <nath2008uk>I must play with black peanus
    <Jat Goodwin>i like the underage one
    <Black Phoenix>He's a good pedo

+ Reply to Thread

Similar Threads

  1. Custom consolescreen
    By Borsty in forum Wiremod Addons
    Replies: 59
    Last Post: 05-25-2010, 01:40 PM
  2. E2 custom extension help
    By phreak314 in forum Wiremod Lua Coding
    Replies: 8
    Last Post: 01-30-2010, 05:34 PM
  3. i need alitle help with expression
    By metanight in forum Wiremod General Chat
    Replies: 2
    Last Post: 12-31-2008, 03:53 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