Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //makes a series of linked prims stack above each other
- linkedPrimList()
- {
- integer primCount = llGetNumberOfPrims();
- integer c = primCount;
- float xPos = 0.0;
- float yPos = 0.0;
- float zPos = 0.0;
- float addZ = 0.1;
- vector stackPos = <xPos, yPos, addZ>;
- float rate = 1.0;
- //this puts all of the linked children in the same spot above the root. i need link 2 to be just above the root, link 3 to be just above link 2, etc.
- for(c; c > 1; c--)
- {
- //i = stackPos;
- // for(i; i >= endAlpha; i -= fadeRate)
- //{
- llSetLinkPrimitiveParamsFast(c, [PRIM_POS_LOCAL, stackPos]);
- llOwnerSay((string)c); // + " " + (string)i);
- llSleep(rate);//0.3
- //stackPos+=;
- //}
- }
- }
- default
- {
- state_entry()
- {
- linkedPrimList();
- // llSleep(5.0);
- // llResetScript();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement