+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 16

Thread: ->Output

  1. #1
    Wire Amateur Jeroenvw's Avatar
    Join Date
    Aug 2010
    Posts
    35

    Default ->Output

    "-> ->Input Must precede an input. Returns 1 if the input is wired to something."

    This comes from the E2 Documentary.
    For some reason you decided to only make this for inputs.

    Make one for outputs.

    Make it like
    Code:
    A->
    or
    Code:
    <-A
    So there will be a line added saying:
    "<- <-Output Must precede an output. Returns 1 if the output is wired to something."

    EDIT: The difference between inputs and outputs is that an output can be wired to more than 1 thing.
    So, instead of
    "Returns 1 if the output is wired to something", make it:
    "Returns the number of things the output is wired to".
    This doesn't change the function, it only adds another option.
    For example, in the battery project there is a link of below, I could make the battery's power drain quicker when more things are wired to it.
    Code:
    if(<-Pin){Power-=<-Pin*PD/6000}
    would then be possible.
    Last edited by Jeroenvw; 09-02-2010 at 04:13 AM. Reason: brilliant idea

  2. #2
    Wirererer holy knife's Avatar
    Join Date
    Feb 2010
    Posts
    224

    Default Re: ->Output

    I don't see anything that this can be useful for? Please provide examples of what you could use it for.

  3. #3
    Wire Amateur Jeroenvw's Avatar
    Join Date
    Aug 2010
    Posts
    35

  4. #4
    hurrr physics Tolyzor's Avatar
    Join Date
    Aug 2008
    Location
    England
    Posts
    1,019

    Default Re: ->Output

    Actually yeah this would be nice. Its useful for e2s which have more than one use. So a generic contraption control e2 automatically adapts its self based on what is wired.
    Comprehensive Gmod physics guide - Ballistic trajectory with drag - Autodyno engine performance test
    Quote Originally Posted by janvos2506 View Post
    i just going to type the code over and over again and maybe il remeber it then
    Don't make the mistake these skydivers did and use any of my Gmod physics models for real life situations...

  5. #5
    Wire Sofaking Solece's Avatar
    Join Date
    Jul 2008
    Location
    Pittsburgh, PA
    Posts
    673

    Default Re: ->Output

    Agreed, someone should add it.

  6. #6
    Ursus maritimus Drunkie's Avatar
    Join Date
    Feb 2009
    Location
    Canada
    Posts
    5,657
    Blog Entries
    1

    Default Re: ->Output

    Quote Originally Posted by Tolyzor View Post
    Its useful for e2s which have more than one use.
    Theres always a use for useless things, although it might be useless to use in some uses.

  7. #7
    hurrr physics Tolyzor's Avatar
    Join Date
    Aug 2008
    Location
    England
    Posts
    1,019

    Default Re: ->Output

    Quote Originally Posted by Drunkie View Post
    Theres always a use for useless things
    O rly?

    Sounds like a bit of a useless comment to me
    Comprehensive Gmod physics guide - Ballistic trajectory with drag - Autodyno engine performance test
    Quote Originally Posted by janvos2506 View Post
    i just going to type the code over and over again and maybe il remeber it then
    Don't make the mistake these skydivers did and use any of my Gmod physics models for real life situations...

  8. #8
    Wire Sofaking Grocel's Avatar
    Join Date
    Mar 2008
    Location
    Germany, NRW, Remscheid
    Posts
    751

    Default Re: ->Output

    I think it's useful.
    Quote Originally Posted by Wizard of Ass View Post
    The secret phrase in gmod is: Rusty bullet hole
    Im a molecule!

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

    Default Re: ->Output

    Code:
    [E2] Made -> work for outputs. Returns the number of wires to the output.
    I couldn't use <- because it would conflict with the comparison
    Code:
    A < -B
    But using -> works just fine!

    EDIT: Updated wiki.

    EDIT:
    Quote Originally Posted by Syranide View Post
    Awesome!
    :V
    Last edited by Divran; 09-02-2010 at 02:35 PM.
    SVN Tutorial
    My SVN:
    Code:
    http://divranspack.googlecode.com/svn/trunk/%20divranspack/
    Get dropbox and get 250 MB extra space: Dropbox

  10. #10
    Expressionism 2.0 Syranide's Avatar
    Join Date
    Mar 2007
    Location
    Sweden
    Posts
    4,573

    Default Re: ->Output

    Awesome!

+ Reply to Thread
Page 1 of 2 12 LastLast

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