Trouble llSleeping - advise please
Posted: Sun Jan 22, 2023 1:28 am
So I'm lucky most days to make a working script that says 'Hello Avatar!', hence I defer to y'all..
I understand that most scripters hate the llSleep command. In the following example script, could anyone suggest some better way to perform the multiple pauses in the execution of this script?
(of course this is not a real script, and yes it is an endless loop as written, but it would be in a temp rez object so i'm not really concerned about the endless bit)
Thanks All!
-----------------------
integer on;
default
{
state_entry()
{
llSetTimerEvent(.05);
}
timer()
{
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
}
}
I understand that most scripters hate the llSleep command. In the following example script, could anyone suggest some better way to perform the multiple pauses in the execution of this script?
(of course this is not a real script, and yes it is an endless loop as written, but it would be in a temp rez object so i'm not really concerned about the endless bit)
Thanks All!
-----------------------
integer on;
default
{
state_entry()
{
llSetTimerEvent(.05);
}
timer()
{
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
llSleep (.03);
llPerform-Some-Function();
}
}