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
timers behaving weird
Re: timers behaving weird
TimerComponent starts out running by default. You can get the behaviour you want by disabling the TimerComponent (uncheck its box) in the editor.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: timers behaving weird
On every one of my maps where I use a timer, I include a script that has the following line: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
Code: Select all
my_timer.timer:stop();
If you do this on your map, the timer won't run until the pressure plate is clicked. Hope this helps.