Neverworld Grid

You are not logged in. Would you like to login or register?



6/10/2019 6:19 pm  #1


Up and Down

A pair of VERY useful scripts. I use them a lot when I tear something apart.
The first one moves an object or prim up, then deletes itself
The second one moves it right back down where it was.

What good is it?  Imagine you have something like a dining table with food that some fool linked into one piece. Simply un-link it then carefully drop the UP script into each piece of a wine  glass.. They will fly up 100 meters. Now go up there and link them together and name it "glass" . Drop the script into a plate. After it flies up name that "plate. Do the same with each piece/set of pieces until you have them all finished.  Now you have the entire thing as separate objects and it's still arranged the way it should be. I hope that was clear.

Another Example:
Unlink a house and move the parts you want up out of the way. Then delete the left-over stuff you don't want.
Or do it the other way around.  I use this pair of scripts more that any other I have  ever written


UP

SetRegionPosition(string Sound, vector destination)
{
  llPlaySound(Sound,1.0);
  llSetRegionPos(destination);
  if(llGetPos() != destination) llSetPos(destination);
}

default
  {
      state_entry()
      {
       SetRegionPosition("2996c7ec-aca9-4e1e-9e16-b6d07290f164",llGetPos() + <0,0,100>);
       llOwnerSay("Finished moving. Deleting the script");
       llRemoveInventory(llGetScriptName());                     
      }
  }  

DOWN


SetRegionPosition(string Sound, vector destination)
{
  llPlaySound(Sound,1.0);
  llSetRegionPos(destination);
  if(llGetPos() != destination) llSetPos(destination);
}

default
  {
      state_entry()
      {
       SetRegionPosition("2996c7ec-aca9-4e1e-9e16-b6d07290f164",llGetPos() + <0,0,-100>);
       llOwnerSay("Finished moving. Deleting the script");
       llRemoveInventory(llGetScriptName());                     
      }
  }  

 

1/11/2021 3:56 am  #2


Re: Up and Down

Even though this place is extremely dead I just need to salute Eastbound & Down again. Just finished re-watching the entire series and I love it so much. There.

 

2/14/2022 12:03 pm  #4


Re: Up and Down

in the words of Lagwagon....

bye fooooor now
didnt mean to let you down,
we didnt mean to drive you away.....
bye foooooor now,
now that youre not around,
so many things wed like to saaaaaaay

cya when you get back batters. until then, keep on truckin :smile:

 

Board footera

 

Powered by Boardhost. Create a Free Forum