Logic Timer

Tutorial collection, comprehensive listings on main site.

Logic Timer

Postby Tutorial on Mon Mar 07, 2005 10:04 pm

category
General Half-Life 2/Entities

description
A handy entity that can fire triggers at different times.

keywords
logic, timer, logic_timer.

Logic Timer is used to trigger something at a set or random interval. In this example, I have used the logic_timer to make steam come out of a pipe every 5 seconds, for 5 seconds. Start off by placing a logic_timer and an env_steam entity. In this example I am using a pipe for the source of my steam.

Image

Go into the properties of the env_steam, and name it "steam" and change the angle if you want to. Next go to the logic_timer properties. Goto the Outputs tab and copy the settings below.

Image

And thats it! You can use this for lots of other things as well. Like having lights come on and off randomly, or doors opening. Have fun!

SiLenTDeaTH
- Don't send PM's to this user -
Tutorial
Not A Real User
 
Joined: Sun Mar 06, 2005 11:00 pm

Postby RaccoonKing on Wed Jun 01, 2005 11:23 pm

Can this be made to work in DM?
I tried setting OnTimer | steam1 | TurnOn | Delay 2
and OnTimer | steam1 | TurnOff | Delay 1

But it still doesn't trigger (it doesn't work when I set only one output and make it Toggle either. The one that resolves first only resolves.)
RaccoonKing
Been Here A While
Been Here A While
 
Joined: Wed May 18, 2005 2:15 pm

Postby Hades_9966 on Tue Jun 07, 2005 1:49 am

In half life 2 deathmatch. Is it possable to make a timer apear to the side of the screen and count down like a timer for a bomb. :!: I need a timer to count down and when it gets to zero it triggers something.
Hades_9966
User avatar
Hades_9966
Dumpling
Dumpling
 
Joined: Thu May 26, 2005 7:21 am

Postby Yoshi on Tue Jun 07, 2005 7:41 am

you can do that but i dont know if its possible to draw a timer. i thought i saw it once, numbers on the centre of the screen, but that could also be a server script...
User avatar
Yoshi
Pheropod
Pheropod
 
Joined: Mon Apr 11, 2005 3:01 pm

Postby zombie@computer on Tue Jun 07, 2005 7:46 am

@ racconking: did you set up the timer (which is completely ignored in this tutorial)? you must set either a refire interval, or a mins/max in combo with a random timer

@ hades_9966 It is possible to do that using lots of timers and env_texts (or whatever they are called) but it really isnt recommended to do this for more than 5-10 seconds max
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

THX

Postby Funkybe@t on Sat Mar 31, 2007 12:04 am

THX, for this TUT!
It was very useful for me.

Is it possible to control a specified animation of a Model in the map?? for example: Model B ... Jump after 20secs??

FunkyBe@t
Funkybe@t
Just Joined
Just Joined
 
Joined: Fri Mar 30, 2007 11:59 pm

Re: THX

Postby Mark Richard on Sat Mar 31, 2007 10:53 am

Funkybe@t wrote:THX, for this TUT!
It was very useful for me.

Is it possible to control a specified animation of a Model in the map?? for example: Model B ... Jump after 20secs??

FunkyBe@t



I guess... don't know if it works for npc's in the way you want. Like after 20 secs, a combine soldiers jumps...
However, I'm pretty sure you can do this with other models, like the combine button:

OnTimer --> combine_button01 --> SetAnimation --> press

Or with that printer, in Dr. Kleiners lab:

OnTimer --> printer01 --> SetAnimation --> print

Remember, you don't have to set any delay on the outputs, and the checkbox "Only once" should NOT be checked.

You just have to set up the timer correct, so it trigger its output every 20 seconds.
User avatar
Mark Richard
Pheropod
Pheropod
 
Joined: Sat Apr 29, 2006 8:46 pm
Location: The Kingdom of Sweden

Return to Tutorials

Who is online

Users browsing this forum: No registered users