SHARE
TWEET

Untitled

a guest May 18th, 2019 121 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer total;
  2. integer start;
  3.  
  4. default
  5. {    
  6.     touch_start(integer total_number)
  7.     {
  8.         vector myPos = llGetPos();
  9.         rotation myRot = llGetRot();
  10.        
  11.         start = 0;
  12.         total = llGetInventoryNumber(INVENTORY_OBJECT);
  13.         llSay (0, "Counted " + (string)total);
  14.        
  15.         vector relativePosOffset = <0.0, 1.0, 0.0>;
  16.         rotation relativeRot = <0.0, 0.0, 0.0, 0.0>;
  17.            
  18.         vector rezPos = myPos+relativePosOffset*myRot;
  19.         rotation rezRot = relativeRot*myRot;
  20.        
  21.         for(; start <= total; ++start)
  22.                     {
  23.                        llRezObject(llGetInventoryName(INVENTORY_OBJECT, 0), rezPos, ZERO_VECTOR, rezRot, 42);
  24.                        rezPos.y++;
  25.                     }
  26.     }
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top