Results 1 to 4 of 4

Thread: Door and Button

  1. #1
    Panah is offline
    SG Regular

    Join Date:
    11 Feb 2012
    Location:
    Norway
    Posts:
    81
    Thanked:
    16 in 13 Posts

    Door and Button

    Hello, i am creating a map for Zriot, and i have created a door to be opened with a button.
    However when i open the door, the button follows the door..
    I have checked the "dont move" flag on the button, and i have parented the button to the door.
    I tryed to parent the door to the button also, but that just makes my game crash on startup.

    Any ideas to a fix?

  2. #2
    Pet Rock is offline
    President of Cocks
    Pet Rock's Avatar
    Join Date:
    29 Jul 2012
    Location:
    Earth
    Posts:
    409
    Thanked:
    38 in 32 Posts
    Quote Originally Posted by Panah View Post
    Hello, i am creating a map for Zriot, and i have created a door to be opened with a button.
    However when i open the door, the button follows the door..
    I have checked the "dont move" flag on the button, and i have "parented the button to the door."
    I tryed to parent the door to the button also, but that just makes my game crash on startup.

    Any ideas to a fix?
    Thats your problem... Parenting in Hammer makes the object follow it... so you parenting the button to the door is making the button follow the door because the door is moving

  3. Thanked by 1 user:
    Panah (1 Mar 2013)

  4. #3
    Kippe is offline
    SG Addict

    Join Date:
    30 Apr 2012
    Location:
    Orange County, CA
    Posts:
    1,158
    Thanked:
    293 in 188 Posts
    Parenting the button to the door makes it follow it's movements. Instead, select the outputs tab and add this:

    My output named: OnPressed
    Targets entities named: door (or whatever you named it)
    Via this input: Open
    Skip parameter override
    After a delay in seconds of: 0 (or whatever you want)

    If you want it to automatically close 3 seconds after opening, add another output.

    My output named: OnPressed
    Targets entities named: door
    Via this input: Close
    After a delay in seconds of: 3
    Quote Originally Posted by Psyche View Post
    Seriously play techies against xdoodles and you will know no greater joy in this world.

  5. Thanked by 1 user:
    Panah (1 Mar 2013)

  6. #4
    Panah is offline
    SG Regular

    Join Date:
    11 Feb 2012
    Location:
    Norway
    Posts:
    81
    Thanked:
    16 in 13 Posts
    I just tested it and now the button stays!

    Thanks alot :D

User Tag List

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •