Advertisement
salahzar

Script Highlighter main board

Feb 28th, 2015
394
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer status=0;
  2. vector st1;
  3. vector st2;
  4. sendInfo()
  5. {
  6.     // inform of my touched pos, pos, rot and scale
  7.     llMessageLinked(LINK_SET,0,llList2CSV([st1, st2, llGetPos(),llGetRot(),llGetScale()]), NULL_KEY);
  8. }
  9. default
  10. {
  11.     state_entry()
  12.     {
  13.         llSay(0, "Reset");
  14.         status=0;
  15.     }
  16.  
  17.     touch_start(integer total_number)
  18.     {
  19.         if(status==0)
  20.         {
  21.             st1=llDetectedTouchST(0);
  22.             llSay(0,"click for 2nd point");
  23.             status++;
  24.             return;
  25.         }
  26.         st2=llDetectedTouchST(0);
  27.        
  28.         //llSay(0,"ORIGINAL ST: "+(string)st);
  29.         sendInfo();
  30.         status=0;
  31.         llSay(0,"Click for next 1st point");
  32.     }
  33.    
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement