Don't forget to add an empty line at the beginning of the script as in the 
example below 

GCI
  ----- Original Message ----- 
  From: Kay McLennan 

  //
  //"Teleport Script NEW" by Rupudiator quann
  key lastAVkey = NULL_KEY;
  string fltText = "Next Floor";
  vector dest = <109.000,115.000,42.625>; // X Y Z coordinates
  init()
  {
          llSetSitText("Teleport");
          llSetText(fltText, <1,1,1>, 1);
          llSitTarget(dest-llGetPos(), <0,0,0,1>);
  }
  default
  {
      state_entry()
      {
                  init();
      }
      touch_start(integer i)
      {
          init();
      }
      changed(integer change)
      {
          key currentAVkey = llAvatarOnSitTarget();
          if (currentAVkey != NULL_KEY && lastAVkey == NULL_KEY)
          {
              lastAVkey = currentAVkey;        
              if (!(llGetPermissions() & PERMISSION_TRIGGER_ANIMATION))  
                  
llRequestPermissions(currentAVkey,PERMISSION_TRIGGER_ANIMATION);
              llSleep(0.5);
              llUnSit(currentAVkey);
              llStopAnimation("sit");
              llResetScript();
          }
      }
  }

_______________________________________________
Opensim-users mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/opensim-users

Reply via email to