(De)Activate a Multimanager Loop

Half-Life HL
(De)Activate a Multimanager Loop by potatis_invalid
Posted 8 years ago2010-03-24 10:21:32 UTC • Examples • Half-Life
Loading...
Screenshot Thumbnail
Name
(De)Activate a Multimanager Loop
By
potatis_invalid potatis_invalid
Type
Map
Engine
Goldsource
Game
Half-Life
Category
Examples
Included
BSP, BSP
Created
8 years ago2010-03-24 10:21:32 UTC
Updated
8 years ago2010-03-24 10:21:52 UTC
Views
1732
Downloads
443
Comments
7
Download

"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 8 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 8 years ago2010-03-26 07:59:00 UTC Comment #18028
I smell multisources.
Commented 8 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 8 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 8 years ago2010-03-27 13:14:23 UTC Comment #18047
?
Commented 7 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 7 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.