i need some help with some timers...
i try to use some timers in a script...
first i tried to addtimer but im getting an error, this is my function
but it wont do anything. i tried the OnTest function in an alias and it worked fine.
then i tried to add something to send in the timer and i did
and it send "send this" in every 3 secs... so i cant understand what is wrong. after that i tried a diferent thing and make a permanent timer that i would enable/disable
the problem is that when i enable the timer it fires 1 sec later and only after that it fires 3 in 3 secs..
any sugestion?
thank you
i try to use some timers in a script...
first i tried to addtimer but im getting an error, this is my function
world.addtimer ( "Name", 0, 0, 3, "", eEnabled | eReplace , "OnTest" );but it wont do anything. i tried the OnTest function in an alias and it worked fine.
then i tried to add something to send in the timer and i did
world.addtimer ( "Name", 0, 0, 3, "send this", eEnabled | eReplace , "OnTest" );and it send "send this" in every 3 secs... so i cant understand what is wrong. after that i tried a diferent thing and make a permanent timer that i would enable/disable
<timer
name="Name"
script="OnTest"
second="3"
>
</timer>the problem is that when i enable the timer it fires 1 sec later and only after that it fires 3 in 3 secs..
any sugestion?
thank you