Fire alarms and multisources Created 20 years ago2004-10-09 22:51:24 UTC by Valak Valak

Created 20 years ago2004-10-09 22:51:24 UTC by Valak Valak

Posted 20 years ago2004-10-09 22:51:24 UTC Post #65114
Ok, here's my problem. In my map, there's a fire alarm in an office, just for kicks. You break the glass, it triggers a multimanager that runs all the stuff for the alarm. There's another button that deactivates the alarm I want it so that will only work when the alarm is on, so I've used a multisource to try to accomplish that. The button turns the alarm off no problem, but the thing is is that it's still working just like a regular button, i.e. it can turn the alarm on if it's off. I've mastered the button to the multisource, but it didn't fix the problem. Help!
Posted 20 years ago2004-10-10 01:56:51 UTC Post #65155
What you do is.. Make the switch that turns it off, but dont set its target. THEN, on the multi_manager that controls your alarm, make a trigger_change target on the button to make it target a NEW multi_manager, and a trigger_changetarget. Make it exactly the same as the first, but that the trigger_changetarget makes the switch trigger nothing again, so it cant be turned back on. Tell me if you dont get something.
TheGrimReafer TheGrimReaferADMININATOR
Posted 20 years ago2004-10-10 09:40:20 UTC Post #65228
Valak, do you mean that AFTER the glass is broken, the button can then toggle the alarm off and on? (solution is to set the button's 'delay before reset' property to '-1' so it can only be used once). Or do you mean that BEFORE the glass is broken you can turn on the alarm with the button. (your button's master is not working properly if that's the case)
Posted 20 years ago2004-10-10 12:51:03 UTC Post #65242
I want it so that it can ONLY turn the alarm off ONLY after the glass is broken.
Posted 20 years ago2004-10-10 13:20:35 UTC Post #65252
I'll make you an example map.
Seventh-Monkey Seventh-MonkeyPretty nifty
Posted 20 years ago2004-10-10 13:38:57 UTC Post #65253
yeah, like what I said up there... follow my instructions
TheGrimReafer TheGrimReaferADMININATOR
Posted 20 years ago2004-10-10 14:11:41 UTC Post #65259
I was asking how it behaves now. I understand how you want it to be. Worded differently; since you want the button to work only once and only after the glass is broken, keep your master on the button the way you have it, and set the button's reset value to -1. Then the button won't work until the glass is broken and you can't turn the alarm back on after you've used the button once to turn off the alarm.

(Then again, you can use TheGrimReafers solution or wait for 7th's example map, as those will also solve the problem.)
You must be logged in to post a response.