Advertisement
Dorex

Untitled

Jul 1st, 2023
2,164
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Basic example without a landmark in the object's inventory, while facing the avatar towards the center of the region:
  2.  
  3. default
  4. {
  5.     touch_start(integer num_detected)
  6.     {
  7.         llRequestPermissions(llGetOwner(), PERMISSION_TELEPORT);
  8.     }
  9.  
  10.     run_time_permissions(integer perm)
  11.     {
  12.         if (PERMISSION_TELEPORT & perm)
  13.         {
  14.             vector region_pos = <100, 130, 40>;
  15.             vector look_at = <128,128,40>;
  16.             llTeleportAgent(llGetPermissionsKey(), "", region_pos, look_at);
  17.         }
  18.     }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement