Advertisement
salahzar

TransmitterWorkingOS

Feb 5th, 2022
1,152
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. integer CHANNEL = -1;
  2.  
  3. vector curpos;
  4. rotation currot;
  5.  
  6. transmit(string cmd, string text)
  7. {
  8.     string full = cmd+"|"+text;
  9.     //llOwnerSay("Transmitting: '"+full+"'");
  10.     llRegionSay(CHANNEL,full);
  11. }
  12. default
  13. {
  14.     state_entry()
  15.     {
  16.         curpos = llGetPos();
  17.         currot = llGetRot();
  18.         transmit("RESET",(string)curpos+"|"+(string)currot);
  19.         llSetTimerEvent(0.1);        
  20.     }
  21.     touch_start(integer count)
  22.     {
  23.         float x = 0;              
  24.         rotation newrot = llGetRot();
  25.        // if( (newrot!=currot) )
  26.        // {            
  27.             currot = newrot;
  28.             transmit("ROTATED",(string)curpos+"|"+(string)currot);
  29.        // }
  30.     }        
  31. }
Advertisement
RAW Paste Data Copied
Advertisement