Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
|
07-25-2009 13:44
HIyas Everyone, I've been playing with timers for a whiles but this one has got me stumped... I have a function() which contains a llSetTimerEvent. If I place this function() in state_entry, the timer() will trigger. But if I call out the function() from with in the script OR if I code the function into the script, I can't seem to get the timer() triggered. I even tried moving the llSetTimerEvent and timer() to another script and messagelink it. I put in some debugging and it does seem that I am getting to and past the llSetTimerEvent. I'm not in a lagged place as the timer() will trigger from state_entry. This is the only timer(). Any ideas on this would be greatly appreciated. Thanx! 
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
07-25-2009 14:19
first, you do realize that the timer will not fire immediately after you call the set timer event (it waits the specified number of seconds before firing the first time) yes?
second, it will not fire before the the event you are in (treat functions as being inside the event you called them from) finishes.
third, if you call set timer event again before the initial wait, it will restart the wait with the new value at the time you called it (and cancel it if you specified 0).
if it's none of those problems, then post some code and we'll have a look =)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
Zena Juran
Registered User
Join date: 21 Jul 2007
Posts: 473
|
07-25-2009 17:18
I found my problem after debugging almost every single line. I had one little error in my llDialogue tree that would basically send a cancellation call to the function(). That's why the function() would work in state_entry but not from the dialogue menu. Piece by little piece... such a small thing but took forever to catch it!!! 
|