<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19048">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Kay,</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>Your script worked for me in opensim.   I 
got the message about selected engine not available until I added a blank 
comment line at the top.   Worked with and without that comment 
though.   What problem are you having?</FONT></DIV>
<DIV><FONT size=2 face=Arial>- Gary</FONT></DIV>
<BLOCKQUOTE 
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><B>From:</B> 
  <A title=mclennan.kay@gmail.com href="mailto:mclennan.kay@gmail.com">Kay 
  McLennan</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=opensim-users@lists.berlios.de 
  href="mailto:opensim-users@lists.berlios.de">opensim-users@lists.berlios.de</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, April 18, 2011 15:14</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Opensim-users] Using a teleport 
  script in the OS</DIV>
  <DIV><BR></DIV>
  <DIV>I would like to use the simple teleport script (below) as kind of an 
  elevator script (to transport avatars from one floor of a building to another 
  floor).  In turn, while the script works in SL I cannot get it to work in 
  the OS.  Any suggestions?  </DIV>
  <DIV> </DIV>
  <DIV>Thank you in advance.</DIV>
  <DIV> </DIV>
  <DIV>Best,</DIV>
  <DIV>Kay</DIV>
  <DIV> </DIV>
  <DIV>// From the book:<BR>//<BR>// Scripting Recipes for Second Life<BR>// by 
  Jeff Heaton (Encog Dod in SL)<BR>// ISBN: 160439000X<BR>// Copyright 2007 by 
  Heaton Research, Inc.<BR>//<BR>// This script may be freely copied and 
  modified so long as this header<BR>// remains unmodified.<BR>//<BR>// For more 
  information about this book visit the following web site:<BR>//<BR>// <A 
  href="http://www.heatonresearch.com/articles/series/22/">http://www.heatonresearch.com/articles/series/22/</A></DIV>
  <DIV>vector target=<65,191,32>;</DIV>
  <DIV>vector offset;</DIV>
  <DIV>default<BR>{    <BR>    
  moving_end()<BR>    
  {<BR>        offset = (target- llGetPos()) 
  * (ZERO_ROTATION / llGetRot());<BR>        
  llSitTarget(offset, ZERO_ROTATION); <BR>    }</DIV>
  <DIV>    state_entry()<BR>    
  {<BR>        llSetText("Right click & 
  touch teleport to go to the 2nd 
  floor",<1,1,1>,1.0);<BR>        
  offset = (target- llGetPos()) * (ZERO_ROTATION / 
  llGetRot());<BR>        
  llSetSitText("Teleport");<BR>        
  llSitTarget(offset, ZERO_ROTATION);      
  <BR>    }</DIV>
  <DIV>    changed(integer change) <BR>    { 
  <BR>        if (change & CHANGED_LINK) 
  <BR>        { 
  <BR>            
  llSleep(0.5); 
  <BR>            if 
  (llAvatarOnSitTarget() != NULL_KEY) 
  <BR>            { 
  <BR>                
  llUnSit(llAvatarOnSitTarget()); 
  <BR>            
  }<BR>        }<BR>    
  }<BR>    <BR>    touch_start(integer 
  i)<BR>    {<BR>        
  llSay(0, "Please right-click and select Teleport");<BR>    
  }<BR>}</DIV>
  <DIV> </DIV>
  <DIV> </DIV>
  <P>
  <HR>

  <P></P>_______________________________________________<BR>Opensim-users 
  mailing 
  list<BR>Opensim-users@lists.berlios.de<BR>https://lists.berlios.de/mailman/listinfo/opensim-users<BR></BLOCKQUOTE></BODY></HTML>