Two Avatars on single prim
Ever wondered how to make two or more avatars to sit on single prim, to save prim amount on a furniture?
You need two kinds of scripts; the master (which calculates avatars sitting down and standing up) and a slave script for each additional avatar
Here are the basic scripts: modified for two avatars on single prim
MASTER <lsl>
float i = llGetTime();
task();
float x = llGetTime();
while (llGetUnixTime()%2 == 0)// do every even second (result 1 for odd seconds)
{
llSleep(1-(x-i));// one second minus time that has passed
}
</lsl>
SLAVE <lsl>
float i = llGetTime();
task();
float x = llGetTime();
while (llGetUnixTime()%2 == 0)// do every even second (result 1 for odd seconds)
{
llSleep(1-(x-i));// one second minus time that has passed
}
</lsl>