Advertisement
Guest User

Untitled

a guest
Jul 14th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. default
  2. {
  3.     state_entry()
  4.     {
  5.         llSetSitText("Teleport");
  6.          
  7.          //Sit target coordinates are <X, Y, Z> change the numbers to change where you end up.
  8.         llSitTarget(<13,119,40>, ZERO_ROTATION);
  9.        
  10.         llSetCameraEyeOffset(<-8.0, 0.0, 47.0>);
  11.        
  12.         // it's usually best to match the camera offset to your sit target
  13.         llSetCameraAtOffset(<0,0,45>);
  14.     }
  15.     changed(integer change)
  16.     {
  17.         if (CHANGED_LINK)
  18.         {
  19.             key agent = llAvatarOnSitTarget();
  20.             if (agent)
  21.             {
  22.                 llUnSit( agent);
  23.                 llPushObject(agent, <0,0,10>, ZERO_VECTOR, FALSE);
  24.                
  25.             }
  26.             else
  27.             {
  28.             }
  29.         }
  30.        
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement