Weld Question

sexehsexeh Join Date: 2003-10-17 Member: 21740Members
<div class="IPBDescription">This is not a newbie question.....</div> ok here’s my question. I want to set up a weldable door that will open when welded, then once open can be open closed with a button. The problem is in order to do this you need to trigger the button on and off using a master, but the master option doesn’t work for some reason.

setup:

multisource = master (name "xdoor")
|
func_weldable = (trigger on finish "xdoor") triggers multisource, multisource triggers func_button to no state and will open close the door.

but this doesn’t work.....

can someone help <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

Comments

  • CageyCagey Ex-Unknown Worlds Programmer Join Date: 2002-11-15 Member: 8829Members, Retired Developer, NS1 Playtester, Constellation
    <!--QuoteBegin--sexeh+Jan 16 2004, 09:50 AM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (sexeh @ Jan 16 2004, 09:50 AM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> ok here’s my question. I want to set up a weldable door that will open when welded, then once open can be open closed with a button. The problem is in order to do this you need to trigger the button on and off using a master, but the master option doesn’t work for some reason.

    setup:

    multisource = master (name "xdoor")
    |
    func_weldable = (trigger on finish "xdoor") triggers multisource, multisource triggers func_button to no state and will open close the door.

    but this doesn’t work.....

    can someone help <!--emo&:)--><img src='http://www.natural-selection.org/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo--> <!--QuoteEnd--> </td></tr></table><span class='postcolor'> <!--QuoteEEnd-->
    Welders are funky as multisource inputs -- have the welder target a trigger relay (initial state off, trigger state toggle), and have the trigger relay target the multisource. You'll want to toggle the trigger relay back to the off position at the end of each round. If you want the door to open immediately once the weld is finished in addition to having the ability to open, you'll have to target the door as well as the multisource from the func_weldable.

    3.0 is feature complete, but I'd like to see better support for round reset in the next client release after 3.0 (which may not be for a while, since 3.0 is meant to stand on its own).
  • sexehsexeh Join Date: 2003-10-17 Member: 21740Members
    Cagey thanks for replying but this still wont solve my problem.

    The func_button can not be turned off initially. so instead of welding the weld point you can just walk up to the button and press use and it will open.....

    I want the door and button to be nonfunctional untill they're triggered by the weld point.

    is this possible?
  • chis1chis1 Join Date: 2004-01-13 Member: 25281Members
    hmm ill be asking mapping questions soon <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo--> i can just map.. im not to good with functions etc..
  • CageyCagey Ex-Unknown Worlds Programmer Join Date: 2002-11-15 Member: 8829Members, Retired Developer, NS1 Playtester, Constellation
    edited January 2004
    <!--QuoteBegin--sexeh+Jan 16 2004, 02:49 PM--></span><table border='0' align='center' width='95%' cellpadding='3' cellspacing='1'><tr><td><b>QUOTE</b> (sexeh @ Jan 16 2004, 02:49 PM)</td></tr><tr><td id='QUOTE'><!--QuoteEBegin--> Cagey thanks for replying but this still wont solve my problem.

    The func_button can not be turned off initially. so instead of welding the weld point you can just walk up to the button and press use and it will open.....

    I want the door and button to be nonfunctional untill they're triggered by the weld point.

    is this possible? <!--QuoteEnd--></td></tr></table><span class='postcolor'><!--QuoteEEnd-->
    The basic functionality (without proper round reset) <i>should</i> be working with the following setup:

    func_weldable
    - targetOnFinish "xdoor_relay"

    trigger_relay
    - targetname "xdoor_relay"
    - target "xdoor_multi"
    - triggerstate "2"

    trigger_relay
    - targetname "xdoor_relay"
    - target "xdoor"
    - triggerstate "1"

    multisource
    - targetname "xdoor_multi"

    func_button
    - targetname "xdoor_button"
    - master "xdoor_multi"
    - target "xdoor"

    func_door
    - targetname "xdoor"

    EDIT: If this setup doesn't work, using a global state bit to control the master would be another thing to try.
  • sexehsexeh Join Date: 2003-10-17 Member: 21740Members
    Thanks Cagey !!!

    Worked like a charm <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->

    I want your ****** IQ damn it <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
Sign In or Register to comment.