BogdansB wrote:so i was thinking about making the timer getting every 500 ms , 100 ms faster so instead of lightening up everi 3000ms it lights up every 2900 and that repeats...
If that is what you want, then do just that. The only trick to it is something you already know (using the variable for the timer length). I'm going to call it timer since it's shorter than milliseconds. I'm also using another variable count.
Set timer to initial value (timer=3000).
Create the timer (no repeat) using timer for the length.
Add the following code.
- Code: Select all
count++;
if(count>=5)
{
count=0;
timer = max(timer-500, 500);
}
// add the actual code you want the timer event to trigger
CreateTimer("Event Actor", "whatever_this_timer_is_called", timer);