+ Reply to Thread
Results 1 to 5 of 5

Thread: XWL:wirelink(E) or E:wirelink()

  1. #1
    Lifetime Supporter rich_27's Avatar
    Join Date
    Aug 2007
    Location
    findByUser("rich_27"):pos()
    Posts
    224

    Question XWL:wirelink(E) or E:wirelink()

    I have no knowledge of Lua, so I have no clue how feasible this would be, but if you already defined a wirelink in the @inputs, would there be anyway to create an E2 function to wire it to an entity?

    Say if you had '@inputs Pod:wirelink' at the start of your code, could you have something like:

    Pod:wirelink(E) or Pod:connect(E), where E is the entity of your Advanced Pod Controller, or even Pod=E:wirelink().

    From what I know, I see no reason against it, as if you have already defined the wirelink then it will get recognised by the compiler. It would just be useful for when you need to switch between seats for an entity, or screens for an output. Say, for example:

    Code:
    @inputs Pod:wirelink
    @persist LastSaid:string
    
    if(first()|duped()){
        runOnChat(1)
    }
    if(chatClk(owner())){
        LastSaid=owner():lastSaid()
        if(LastSaid=="~pod"){
            Pod:wirelink(owner():aimEntity())
        }
    }

  2. #2
    billywitchdoctor.com Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,300

    Default Re: XWL:wirelink(E) or E:wirelink()

    There are some functions around which wire entities together. I'm not sure if wirelink was included.
    .siht daer ot gniyrt emit detsaw ev'uoY

  3. #3
    Lifetime Supporter rich_27's Avatar
    Join Date
    Aug 2007
    Location
    findByUser("rich_27"):pos()
    Posts
    224

    Default Re: XWL:wirelink(E) or E:wirelink()

    Was that official? Unofficial stuff is a bummer to use. And if its like wire A of Ent to Thrust of Ent2, thats a bit ridiculous. Its just that wirelink is build for that kind of ease...

  4. #4
    aka Colonel Never Online Colonel Thirty Two's Avatar
    Join Date
    Oct 2009
    Posts
    2,683
    Blog Entries
    5

    Default Re: XWL:wirelink(E) or E:wirelink()

    Unofficial stuff is the best stuff. I know unsmart's server had wire functions, as well as E:makeWirelink and E:getWirelink

  5. #5
    has a custom title mattwd0526's Avatar
    Join Date
    Apr 2009
    Location
    Born Bostonian
    Posts
    2,652

    Default Re: XWL:wirelink(E) or E:wirelink()

    It is unofficial, looking for thread right now...

    Edit: Here we go, scroll down to the E2 Create Wire Functions: http://www.wiremod.com/forum/wiremod...re-addons.html

    I don't believe it contains wirelink, but IIRC TomyLobo made some patch at some point that accomplished this. (Never SVN'D)

+ Reply to 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