Opening a door by shooting a button.

Discussion in 'Mapping Questions & Discussion' started by cruizer, Mar 17, 2008.

  1. cruizer

    cruizer L2: Junior Member

    Messages:
    52
    Positive Ratings:
    0
    As if I don't ask enough questions....

    I swear I have seen a tutorial on how to open a door by shooting a button, but I can't find them now.
    I want the doors to open and close only bu shooting the button.
    Anyone know how to do this?
     
  2. DJive

    aa DJive Cake or Death?

    Messages:
    1,466
    Positive Ratings:
    736
    on the door properties *ALT+ENTER*

    Health (shoot open)
     
  3. cruizer

    cruizer L2: Junior Member

    Messages:
    52
    Positive Ratings:
    0
    Well i don't want to have to shoot the door itself, I want to shoot a button.
    Shooting the button will open a series of doors, not just one.
     
  4. Benny

    Benny L1: Registered

    Messages:
    16
    Positive Ratings:
    1
    In the Button's Flags check Damage activates or so
     
  5. cruizer

    cruizer L2: Junior Member

    Messages:
    52
    Positive Ratings:
    0
    What settings on the output do I need in order to link it to do the door.
    I can get the OnDamage and link it to the door, but what "via" input do i need? There is no "open" and/or "close" option.
     
  6. Benny

    Benny L1: Registered

    Messages:
    16
    Positive Ratings:
    1
    Just use OnPressed and then Output to the door with open.
     
  7. trackhed

    trackhed L3: Member

    Messages:
    106
    Positive Ratings:
    2
    Names:
    func_door = Door1 AKA the door

    trigger_multiple = Trig1 AKA the trigger

    func_movelinear = Button1 AKA the button

    Button1 I/O:
    Add
    My Output Named : OnDamage
    Target The Entity Named : Trig1
    Via This Input : Trigger

    Trig1 I/O :
    Add
    OnTrigger
    Door1
    Open
     
  8. cruizer

    cruizer L2: Junior Member

    Messages:
    52
    Positive Ratings:
    0
    OK, I've tried using func_movelinear, and there is no output names "On Damanged"

    I've tried using func_button, it has "OnDamaged" outPut, but there is no Via this input "Trigger."
     
  9. MangyCarface

    aa MangyCarface Mapper

    Messages:
    1,616
    Positive Ratings:
    1,275
    No, just set the input as Press. This will move the "button" (the button's a door in this case.)
     
  10. cruizer

    cruizer L2: Junior Member

    Messages:
    52
    Positive Ratings:
    0
    Please excuse my ignorance Mangy, as we have a bucnh of different items on this thread...

    What functions are you taking about where, and which one do you say the input needs to be "onpressed"? I changes the func_button to onpressed for the output, but now it doesn't do anything.


    Here's what i have at the moment, playing around.
    The button itself is func_button

    Settings are:

    OnDamaged
    Door 1
    Open

    OnDamaged
    Door 1
    Close

    Then the func_door. No trigger brush or func.

    It works great when you shoot the button once. The door opens.
    At first, the door would close on it's own after 4 seconds.
    I changed the rest on the func_door to -1 so it doen't close on it's own.

    You shoot the button once, the door opens. And now never closes, even when you shoot the button again.
     
  11. Benny

    Benny L1: Registered

    Messages:
    16
    Positive Ratings:
    1
    That cant work.
    Just use one Input :
    OnDamaged
    Door 1
    Toggle


    That will toggle the door.
     
  12. cruizer

    cruizer L2: Junior Member

    Messages:
    52
    Positive Ratings:
    0
    You guys are all awesome!
    The button works fine now. I wouldn't have gotten it without you!
     
  13. MangyCarface

    aa MangyCarface Mapper

    Messages:
    1,616
    Positive Ratings:
    1,275
    My bad mate, I meant to say make the output Press when OnDamaged is triggered and the target of Press the button itself. Buttons can behave like doors and so you would only need one button to perform all the functions you need. Glad you got it figured out.
     
  14. cruizer

    cruizer L2: Junior Member

    Messages:
    52
    Positive Ratings:
    0
    Thanks again Mangy.

    The next question, related to this is, if I have one button opening multiple doors, if they same type, style, direction, etc. Do I have to have to give them all unique names, or can I name them all the same? Will that cause confusion in the compiling? I've tested it, and if multiple doors have the same name, they all open when the button is triggered. I jsut want to know if this is bad for some reason.


    Also, speaking of the button. When I shoot it, it moves away from the wall for a few seconds. is there a way to prevent this from happening?
     
    Last edited: Mar 18, 2008
  15. cruizer

    cruizer L2: Junior Member

    Messages:
    52
    Positive Ratings:
    0
    Nevermind the button part, I found the "Don't move" Flag, i assume that'll do the trick.