I've already got help from a creator about how to make individual rotating parts and i don't want to bug them again about how to make individual floating parts as i have never seen that in their creations, so i have come here to the forums for guidance... i already tried something from the wiki and my object ended up floating into the abyss (it went off world).
This is the effect i am looking to create without making the entire linkset float:
// Heights in meters
float moveMPerStep = 0.001; // Move x meters per step
float changeStage = 0.001; // Increment speed to quicken then slow move
integer steps = 40; // Number of steps per cycle
float topWait = 0.0; // Wait duration at top position till descending
float botWait = 0.0; // Wait duration at bottom position before ascending
integer top;
integer count;
vector pos;
float Z;
default
{
on_rez(integer start)
{
llResetScript();
}
state_entry()
{
top = FALSE;
count = 0;
llSetTimerEvent(0.01);
}
timer()
{
vector pos = llGetPos();
if( count != steps )
{
if( top )
{
if( count < steps/2)
{
moveMPerStep += changeStage;
}
else
{
moveMPerStep -= changeStage;
}
pos = llGetPos();
pos.z -= moveMPerStep;
llSetRegionPos(pos);
count ++;
}
else
{
if( count < steps/2)
{
moveMPerStep += changeStage;
}
else
{
moveMPerStep -= changeStage;
}
pos = llGetPos();
pos.z += moveMPerStep;
llSetRegionPos(pos);
count ++;
}
}
else if( count == steps )
{
if(top)
{
top = FALSE;
llSleep(botWait);
}
else
{
top = TRUE;
llSleep(topWait);
}
count = 0;
}
}
}
This is the script i was given for individual rotating objects in a linkset:
default
{
state_entry()
{
llTargetOmega(<0,-1,0>,0.3,1.0);
}
}
Please help ^.^'''''