Page 1 of 1

timers behaving weird

Posted: Sat Mar 14, 2015 11:17 pm
by kelly1111
question: I presure plate connected to a timer (interval 3) , the presure plate to set onactivate timer start

the timer connected to a spawner and a counter. The counter decrements from 6 and the spawner activates each interval

the problem I have is, that the timer fires even without me stepping on the presure plate (plate is set to party only) .. I dont understand why it starts out of itself?

Can anyone figure out what I am doing wrong? ... i need it to start only when stepping on the presure plate

Re: timers behaving weird

Posted: Sat Mar 14, 2015 11:25 pm
by minmay
TimerComponent starts out running by default. You can get the behaviour you want by disabling the TimerComponent (uncheck its box) in the editor.

Re: timers behaving weird

Posted: Sun Mar 15, 2015 4:04 am
by Azel
kelly1111 wrote:question: I presure plate connected to a timer (interval 3) , the presure plate to set onactivate timer start

the timer connected to a spawner and a counter. The counter decrements from 6 and the spawner activates each interval

the problem I have is, that the timer fires even without me stepping on the presure plate (plate is set to party only) .. I dont understand why it starts out of itself?

Can anyone figure out what I am doing wrong? ... i need it to start only when stepping on the presure plate
On every one of my maps where I use a timer, I include a script that has the following line:

Code: Select all

my_timer.timer:stop();
This code runs as soon as the Map Level loads, which prevents the timer from running automatically. This limits my timer to running only when the proper event (eg, a floor_trigger) takes place. I usually have a single Script Object on each level whose sole purpose is to run what I call "Initialization Commands."

If you do this on your map, the timer won't run until the pressure plate is clicked. Hope this helps.