Difference between revisions of "Synchronize"
Jump to navigation
Jump to search
Cay Trudeau (talk | contribs) (Created page with ' //simple synchronize script for two or more separate prims, like wings for instance // assuming the task(); is 100% similar in all prims and takes less than 1 sec to impleme...') |
Cay Trudeau (talk | contribs) |
||
Line 8: | Line 8: | ||
float i = llGetTime(); | float i = llGetTime(); | ||
task(); | task(); | ||
float x = llGetTime(); | float x = llGetTime(); | ||
while (llGetUnixTime()%2 == 0)//odd or even seconds | while (llGetUnixTime()%2 == 0)//odd or even seconds | ||
{ | { | ||
llSleep(1-(x-i));// one second minus time that has passed | llSleep(1-(x-i));// one second minus time that has passed | ||
} | } |
Revision as of 01:09, 14 November 2010
//simple synchronize script for two or more separate prims, like wings for instance
// assuming the task(); is 100% similar in all prims and takes less than 1 sec to implement
float i = llGetTime(); task(); float x = llGetTime(); while (llGetUnixTime()%2 == 0)//odd or even seconds { llSleep(1-(x-i));// one second minus time that has passed }