Trigger_once to be turned off by button Created 10 years ago2013-05-30 08:15:43 UTC by XaSer XaSer

Created 10 years ago2013-05-30 08:15:43 UTC by XaSer XaSer

Posted 10 years ago2013-05-30 08:15:43 UTC Post #313736
Hi

I have a locked door (func_door), a trigger_once and a func_button, 2 game text and 1 multi_manager.

The trigger_once triggers a game_text which says you need use the button to open the door.

The button triggers the multi_managers. The multi_manager triggers a text (saying button has been found) and opening the door.

However, if you use the button, I do not want the trigger_once to trigger the game_text.

How to turn the trigger_once off if the button is used before anyone tuched the trigger_once?

Multisource? How?

Thank you.
Posted 10 years ago2013-05-30 14:40:37 UTC Post #313746
It's been a while since i've played with GoldSource triggers but this may work:
Have a multisource act as the trigger_once's master.
somehow set the multisource on with another trigger so the trigger_once can function properly.

If you use the button, use a trigger_relay to send an Off command to the multisource to de-activate the trigger_once.

Again, i'm not 100% sure that will work. I'm also away from any testing rig at the moment.
Good luck
Tetsu0 Tetsu0Positive Chaos
Posted 10 years ago2013-05-31 13:28:48 UTC Post #313759
I tried what you said, but now the trigger_once (which is supposed to trigger a game_text never work). As you said, I need to turn the multisource on. I tried to use a trigger_once with the multisource as the target, however, no luck there. Any suggestions?
Posted 10 years ago2013-05-31 16:14:27 UTC Post #313762
just a idea:
you can disable trigger_once with killing it
make a hidden door somewhere outside of your map,
add trigger_once as a killtarget to the door

target door to the button

now when you press the button it will open the door and door gonna kill the trigger_once

I'm not sure how you will reactivate trigger_once again but atleast it can solve your problem

edit: maybe you can add another trigger_relay to activate multisource or change the state to "toggle" for your first trigger_relay so when you trigger everytime trigger_relay it will change the state
on, off, on , off...
Posted 10 years ago2013-06-06 13:34:34 UTC Post #313839
Ty platoon, door with killtarget worked :)
You must be logged in to post a response.