Enter Half-Life Re-imagined, our current competition!
Check out Skewing textures in Hammer, our newest tutorial!
Welcome, Bear, our newest member!

logo

Site Stuff

Reference

Maps

Community

ShoutBOX

Poll

Feeling Blue

What's your favourite shade of blue?

Azure

4

Cobalt

8

Turquoise

1

Cyan

4

Royal

2

Teal

1

Onliners

2 mins

Shepard62700FR

8 mins

Themaster12234

10 mins

Loulimi

39 mins

Solokiller

43 mins

Suparsonik

45 mins

Penguinboy

52 mins

Tetsu0

Affiliates

A gaming and technology blog by TWHL admins Penguinboy and Ant. A music blog by TWHL users Ant and Hugh.

Looping Multi_Managers

By Jeff 'Yesukai' Pritchard

So, you want something (or some things) to happen every n seconds (or fraction thereof, even). Easy, just use a multi_manager.

First, make whatever you want to repeatedly trigger. It can be more then one thing, so for the sake of completeness I'll make two things: entity Bob and entity Marsha. It really doesn't matter what Bob and Marsha are, just that you want them to be triggered every n seconds. We will make n = 2 seconds for Bob and 3 seconds for Marsha.

So, take your multi_manager, give it a Name (targetname if not in SmartEdit), something like supa_mm. Now, click the button "SmartEdit" to get out of smart edit mode.


Click the little button that says "Add" and then enter Bob in the Key field. This identifies what you want to trigger. The Value field determines when to trigger it, which for Bob is 2. Click "ok". Now do the same thing for Marsha, only make this one 3 seconds.


 
This should be your result:


Now, in order to get the multi_manager to loop, there are two things you must do. First, you must add the multi_manager, supa_mm, as a target of itself. Do this the same way you did before, with supa_mm in the Key field and let give it a time (Value) of 3, so that it re-triggers itself at the same time that Martha is triggered. Now, you also need to click the "Flags" tab and check the "multithreaded" tag. This lets it be re-triggered while its already running, and more importantly, lets it be triggered by itself.

As it is, after supa_mm is triggered, it will trigger Bob every two seconds and Martha every three seconds, forever and ever untill the next level loads. To trigger the multi_manager when the level starts, use a trigger_auto. Otherwise, just use whatever "trigger_x" fits your level.

See, pretty easy to do, especially after you get the hang of working outside of SmartEdit mode.