And Gates
NerdIII
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--> )
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
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!@!!@!
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-->
when you need 2 ANDs you need a relay chain with 2 masters.