SHARE
TWEET

Untitled

a guest Jun 16th, 2019 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.         vector simGlobalCoords;
  2.         //integer setup= 0;
  3.  
  4. default
  5. {
  6.  state_entry()
  7. {
  8.     llRequestPermissions(llGetOwner(), PERMISSION_TELEPORT);
  9.      
  10.     }
  11.    
  12.     run_time_permissions(integer perm)
  13.     {
  14.         if(PERMISSION_TELEPORT & perm)
  15.         {
  16.          state strife;
  17.         }
  18.     }
  19.  
  20.  
  21. }
  22.  
  23. state strife
  24. {
  25.     state_entry()
  26.     {
  27.         llSay(0, "Hello, Avatar!");
  28.      
  29.    // key owner= llGetOwner();
  30.    
  31.     }
  32.  
  33.     touch_start(integer total_number)
  34.     {
  35.         llSay(0, "Touched.");
  36.          string SIM="Portal Park 1"; //the name of the sim to tp the player too. :P
  37.          vector LandingPoint =<98,154,54>;
  38.          llRequestSimulatorData(SIM, DATA_SIM_POS);
  39.          llUnSit(llGetOwner());
  40.          llTeleportAgentGlobalCoords(llGetOwner(),simGlobalCoords, LandingPoint, ZERO_VECTOR);
  41.     }
  42.    
  43.      dataserver(key query_id, string data)
  44.     {
  45.         simGlobalCoords = (vector)data;
  46.         //setup--;
  47.          llOwnerSay("Sim global coords: " + (string)simGlobalCoords);
  48.     }  
  49.    
  50.    
  51.  
  52. }
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