ok, a little oddness I've encountered today with timing and llSleep
script_number is assumed to be from 1 -10
llMessageLinked( integer sender, integer number, string some_string, key some_key ){
if (number == some_preset){
llSleep( script_number / 10 );
state next_state;
}}
in the next state a llSetLinkParams call is made....
everything works except that it seemed to be running a lil fast (actually simultaneous), so I changed sleep to script_number / 5
and here's the weirdness... the first five scripts fire simultaneously, and then after a delay, the next five.....
EDIT!!!
ok so the realization struck me that if it's splitting at around .5 it must be because it's rounding... oops DUH.... script_number is defined as a integer, so it was returning an integer.... simple fix
llSleep( (float)script_number / 10.0 );
I think it's time for this call llSleep( Void ).........