+ Reply to Thread
Results 1 to 4 of 4

Thread: Auto door enabler and disable

  1. #1
    Wire Noob MiniRazor's Avatar
    Join Date
    Dec 2009
    Posts
    14

    Post Auto door enabler and disable



    Ok i have locked a littel into wiremod and i am pretty good at it but i am trying to code some expressions in E2 but i can make the auto door but i wanna make it so that the target finder needs to have a target and the button needs to be 1 before it opens i did start whit this


    @name Auto Door
    @inputs Target
    @outputs Door
    @persist
    if (Target>=1) {Door=0} else {Door=100}


    and now i want to add the button

    @name Auto Door
    @inputs Target Button
    @outputs door
    @persist
    if (~Target + Button == 2) {Door=0} else {Door=100}



    pls respond as fast as your guys can
    Last edited by MiniRazor; 12-05-2009 at 11:26 AM.

  2. #2
    Wire Sofaking Wodden's Avatar
    Join Date
    Sep 2007
    Location
    location.sh &> /dev/null
    Posts
    446

    Default Re: Auto door enabler and disable

    [highlight=e2]@name Auto Door
    @inputs Target Button
    @outputs Door
    if (Target & Button) {
    Door=0
    } else {
    Door=99
    }
    [/highlight]
    “Saying Java is good because it works on all operating systems is like saying anal sex is good because it works on all genders.”

  3. #3
    Wire Noob MiniRazor's Avatar
    Join Date
    Dec 2009
    Posts
    14

    Default Re: Auto door enabler and disable

    Thanks

  4. #4
    Spucatum Tauri Bull's Avatar
    Join Date
    Jun 2008
    Location
    Finland
    Posts
    6,010

    Default Re: Auto door enabler and disable

    Make the on/off value of the button 99 / 0
    Wire Button and Targetfinder to a Multiply gate.
    Wire Hydraulic to the multiply gate.
    My signature has a point.
    Quote Originally Posted by Squeakyneb View Post
    when l3ulletje says do it, do it.
    That

    Quote Originally Posted by Anticept View Post
    By the way, Bull is in charge.

+ Reply to Thread

Similar Threads

  1. How to disable public folder (Adv Dupe) ?
    By Drunkie in forum Installation and Malfunctions Support
    Replies: 5
    Last Post: 10-13-2009, 02:10 PM
  2. E2 hydraulic auto-door help
    By Maxaxle in forum Installation and Malfunctions Support
    Replies: 1
    Last Post: 10-08-2009, 10:47 PM
  3. ConCommand to disable wiremod entirely.
    By Dotmister in forum Ideas & Suggestions
    Replies: 4
    Last Post: 09-05-2009, 09:01 PM
  4. Remove or disable wiremod tools?
    By BrandonB in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 06-19-2009, 01:48 PM
  5. Back door trader (my Door messes up)
    By Tuollaf in forum Ideas & Suggestions
    Replies: 6
    Last Post: 07-17-2008, 05:49 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