Advertisement
Gayngel

Teleport script

May 1st, 2016
555
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. key teleportee;
  2. integer tp;
  3.  
  4. default
  5. {
  6.  
  7. state_entry()
  8. {
  9.  
  10. teleportee = llGetOwner();
  11. llRequestPermissions(teleportee, PERMISSION_TELEPORT);
  12.  
  13. }
  14. collision_start(integer num)
  15.  
  16. {
  17. if(tp)
  18. {
  19. llTeleportAgent(teleportee, "", <13.0, 38.0, 23.5>, <13.0, 12.0, 23.5>);
  20. }
  21.  
  22. }
  23.  
  24. run_time_permissions(integer perm)
  25. {
  26. if(PERMISSION_TELEPORT & perm)
  27. {
  28.  
  29. tp = TRUE;
  30.  
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement