Repeat timer

Avatar
beecake
484 Posts
Posted Oct 28, 2011
I want to have a timer counting 10 or 15 seconds and Then activate something while it re-counts and Then re-activates the element...

I guess i should ude logic_timer... Bit how do i repeat a trigger to trigger the timer at an excact moment?

Advertisement
Registered users don’t see ads! Register now!
Avatar
spongylover123
944 Posts
Posted Oct 28, 2011
Replied 5 hours later
They have a reset timer output
Avatar
beecake
484 Posts
Posted Oct 28, 2011
Replied 15 minutes later

spongylover123 wrote:
They have a reset timer output

Yes an output but do i Then have to make a lot of outputs and logic_relays?

Avatar
spongylover123
944 Posts
Posted Oct 28, 2011
Replied 3 minutes later
Depends on how much you will use it.
Avatar
ChickenMobile
2,460 Posts
Posted Oct 28, 2011
Replied 3 hours later
Timers iterate repeatedly as soon as you enabled them. 'ReFireTimer' is just to reset the time again while it is in mid counting. Technically if you only want a time to count once, it should disable itself 'OnTimer'.

So do you want when it is counting to activate the element and when it is finished deactivate it?

You can have the same effect by creating a button (with no fast reset that plays the timed sound AND the delayreset value is set to the amount of time you want it to count) which activates a prop_indicator_panel that 'is timed'.
To activate your event use the button's 'OnPressed' input and to de-activate it use the 'OnButtonReset' input.

The button-timer is the way you should be setting up timed test elements.

Avatar
MasterLagger
1,695 Posts
Posted Oct 28, 2011
Replied 1 hour later
Do you want the timer to loop (repeat) by itself?
Avatar
beecake
484 Posts
Posted Oct 29, 2011
Replied 5 hours later

MasterLagger wrote:
Do you want the timer to loop (repeat) by itself?

Yes excactly! I want it too refire everytime its done counting and on every time its counted 15 seconds it should make fx. A prop_tractor_beam reverse. And then on next timer the tractor_beam should go back normal. and repeat this again and again in the whole level
Maybe i could loop it between to elements?
Logic_timer: ontime; button; press
Ontime; element; reverse
Button: onpressee; logic_timer; refiretimer

Avatar
Rubrica
305 Posts
Posted Oct 29, 2011
Replied 34 minutes later
Create a logic_branch with output of 'OnTrue, funnel, SetLinearForce, 500' (change the later to whatever you want) and 'OnFalse, funnel, SetLinearForce, -500'. Then, add an output to the timer; 'OnTimer, logicbranch, ToggleTest'. That should alternate between forwards and backwards for the funnel, I think.
Advertisement
Registered users don’t see ads! Register now!
Avatar
beecake
484 Posts
Posted Oct 29, 2011
Replied 50 minutes later

Rubrica wrote:
Create a logic_branch with output of 'OnTrue, funnel, SetLinearForce, 500' (change the later to whatever you want) and 'OnFalse, funnel, SetLinearForce, -500'. Then, add an output to the timer; 'OnTimer, logicbranch, ToggleTest'. That should alternate between forwards and backwards for the funnel, I think.

Nice :wink: Thank you all for your comments :smile: I will look at the ideas