Commented 14 years ago2010-03-26 10:59:52 UTCComment #18031
Nope, just trigger_relays, trigger_changetargets and a multimanager. Maybe it could be done with multisources, but I don't like them and they don't like me.
Commented 14 years ago2010-03-27 12:12:08 UTCComment #18046
Oh wow this could be extremely useful. I'll take a look if I ever need it. I just assume you use change_targets to make the mm target something else to turn it off and other change_targets that change the mm back to target it on.
Commented 13 years ago2011-07-09 03:56:15 UTCComment #19321
Oh geez, the same button triggers it on and off, thats cool. Could you explain exactly how this works? I guess it couldn't be done with change targets ?
Commented 13 years ago2011-07-09 14:31:31 UTCComment #19326
I have a trigger_auto which triggers the multi_manager "mm". "mm" triggers this: "exp_relay" after 0.01s "mm" after 0.8s <- It triggers itself, creating an endless loop
"exp_relay" is a trigger_relay which targets "" (nothing)
The trigger_relay "onoff" targets the trigger_changetarget "on" (There are two with this same name)
"on"#1 changes "exp_relay"'s target to "exp", which is a func_explosive used to demonstrate the effect of this system. "on"#2 changes "onoff"'s target to "off", so the next time "onoff" is triggered, instead of triggering "on" it'll trigger "off".
"off"#1 changes "exp_relay"'s target to "" (nothing). "off"#2 changes "onoff"'s target to "on", so the next time "onoff" is triggered, instead of triggering "off" it'll trigger "on".
The func_button targets "onoff".
I'm sure there's a way to have the multi_manager only loop when needed, but this is the simplest system I could think of. And simplicity often means less bugs.
I need some time to figure out exactly what's going on here, but I see that it works.
Edit: Oh I see, the mutlimanager is never actually altered. Never would have thought to do it this way!
"exp_relay" after 0.01s
"mm" after 0.8s <- It triggers itself, creating an endless loop
"exp_relay" is a trigger_relay which targets "" (nothing)
The trigger_relay "onoff" targets the trigger_changetarget "on" (There are two with this same name)
"on"#1 changes "exp_relay"'s target to "exp", which is a func_explosive used to demonstrate the effect of this system.
"on"#2 changes "onoff"'s target to "off", so the next time "onoff" is triggered, instead of triggering "on" it'll trigger "off".
"off"#1 changes "exp_relay"'s target to "" (nothing).
"off"#2 changes "onoff"'s target to "on", so the next time "onoff" is triggered, instead of triggering "off" it'll trigger "on".
The func_button targets "onoff".
I'm sure there's a way to have the multi_manager only loop when needed, but this is the simplest system I could think of. And simplicity often means less bugs.