(De)Activate a Multimanager Loop

Half-Life HL
(De)Activate a Multimanager Loop by Oskar Potatis
Posted 14 years ago2010-03-24 10:21:32 UTC • Examples • Half-Life
Loading...
Screenshot Thumbnail
Name
(De)Activate a Multimanager Loop
By
Oskar Potatis Oskar Potatis
Type
Map
Engine
Goldsource
Game
Half-Life
Category
Examples
Included
BSP, RMF/VMF
Created
14 years ago2010-03-24 10:21:32 UTC
Updated
3 years ago2021-01-02 16:13:33 UTC
Views
3781
Downloads
1043
Comments
7

"I'd love to see an example of a map that repeatedly triggers something like a light until the button that activates it is pressed again."

7 Comments

Commented 14 years ago2010-03-24 20:05:30 UTC Comment #18020
Thanks a lot.
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!
Commented 14 years ago2010-03-26 07:59:00 UTC Comment #18028
I smell multisources.
Commented 14 years ago2010-03-26 10:59:52 UTC Comment #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 UTC Comment #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 14 years ago2010-03-27 13:14:23 UTC Comment #18047
?
Commented 13 years ago2011-07-09 03:56:15 UTC Comment #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 UTC Comment #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.

You must log in to post a comment. You can login or register a new account.