And Gates

NerdIIINerdIII Join Date: 2003-04-05 Member: 15230Members
<div class="IPBDescription">searching for a good solution</div> This is not NS specific, but as there are some of the best mappers on this forum I will ask anyway <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
As we all know multi_source entities activate when all triggers targeting it are on. Unfortunatly the go crazy, when their sources go on and off repeatedly. So what I need is working solution for an AND-gate, and a NOT-gate. So basically I would like to know a way to implement the very basic boolean equations.
In my special case I want two triggers on and one off to activate a certain target and deactivate it as soon as the condition is false. The equation looks like this:

A ^ B ^ !C = target
where ^ means AND, and ! means NOT
(Can't wait to get HL2's trigger system <!--emo&:angry:--><img src='http://www.unknownworlds.com/forums/html/emoticons/mad.gif' border='0' style='vertical-align:middle' alt='mad.gif'><!--endemo--> )

Comments

  • ConfusedConfused Wait. What? Join Date: 2003-01-28 Member: 12904Members, Constellation, NS2 Playtester, Squad Five Blue, Subnautica Playtester
    i would just cunningly invert the value of c and then my friend you are golden!


    if that was un clear make teh trigger be the inverse of the state thus teh untriggered state is true and triggerd is false no?

    it hink this is easily done using teh env_globals but i cant recall not having used hammer in like 4 weeekss!@!!@!
  • NerdIIINerdIII Join Date: 2003-04-05 Member: 15230Members
    Invert C would be fine if I wouldn't also need the positive value of C <!--emo&:p--><img src='http://www.unknownworlds.com/forums/html/emoticons/tounge.gif' border='0' style='vertical-align:middle' alt='tounge.gif'><!--endemo-->
    I have three variables handeling 2 events over cross.
    Thanks for your answer. I wasn't aware of the use of env_globals. They work pretty good. Now I can finally do all the AND-OR-NOT stuff I always wanted to <!--emo&:)--><img src='http://www.unknownworlds.com/forums/html/emoticons/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif'><!--endemo-->
    Yes, I am a <!--emo&::nerdy::--><img src='http://www.unknownworlds.com/forums/html/emoticons/nerd.gif' border='0' style='vertical-align:middle' alt='nerd.gif'><!--endemo-->
  • Carbon14Carbon14 Join Date: 2002-07-29 Member: 1025Members, Retired Developer
    I am interested if anyone figures the logic gated out in Hammer. I once made the logic for a 3 level lift, and if anyone can fugure this out, I will be able to replicate my lift in a map <!--emo&:D--><img src='http://www.unknownworlds.com/forums/html/emoticons/biggrin.gif' border='0' style='vertical-align:middle' alt='biggrin.gif'><!--endemo-->
  • OlljOllj our themepark-stalking nightmare Fade Join Date: 2002-12-12 Member: 10696Members
    edited July 2003
    using the trigger_changetargets on a chain of trigger_relays works.

    when you need 2 ANDs you need a relay chain with 2 masters.
Sign In or Register to comment.