<!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.19190">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV><FONT size=2 face=Arial>Look at <A 
href="http://opensimulator.org/mantis/view.php?id=5947">http://opensimulator.org/mantis/view.php?id=5947</A></FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>May be it is on the same idea ; if so, add comment 
to the Mantis</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>GCI</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=rigun@rigutech.nl href="mailto:rigun@rigutech.nl">R.Gunther</A> 
</DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, March 29, 2012 1:40 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> [Opensim-dev] MoveToTarget 
  broken ?</DIV>
  <DIV><BR></DIV>I start to work again with phyical objects. But many things 
  that worked before,<BR>Dont work pretty good anymore. or seems to stop working 
  at all.<BR>In this case, the following script seems to fail in some way with 
  the march version of <BR>osgrid opensim version. I have tried the same script 
  in 0.7.3RC2 local stanbdalone and there it still works.<BR>Also my own 
  verhicle works not good anymore , for some reason the event "at_target(" dont 
  get triggered anymore.<BR><BR>this script i tried in my sandbox. sandbox palza 
  1 & 2 and OKC sandbox. it dont work. <BR><BR><PRE class=lsl><A href="http://wiki.secondlife.com/index.php?title=default"><SPAN style="COLOR: #0000ff; FONT-WEIGHT: bold; TEXT-DECORATION: none">default</SPAN></A>
<SPAN style="COLOR: #66cc66">{</SPAN>
    <A href="http://wiki.secondlife.com/index.php?title=state_entry"><SPAN style="COLOR: #00a0a0; FONT-WEIGHT: bold; TEXT-DECORATION: none">state_entry</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN><SPAN style="COLOR: #66cc66">)</SPAN>
    <SPAN style="COLOR: #66cc66">{</SPAN>
        <A href="http://wiki.secondlife.com/index.php?title=vector"><SPAN style="COLOR: #007700; FONT-WEIGHT: bold; TEXT-DECORATION: none">vector</SPAN></A> pos <SPAN style="COLOR: #66cc66">=</SPAN> <A href="http://wiki.secondlife.com/index.php?title=llGetPos"><SPAN style="COLOR: #a00000; FONT-WEIGHT: bold; TEXT-DECORATION: none">llGetPos</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN><SPAN style="COLOR: #66cc66">)</SPAN>;
        <A href="http://wiki.secondlife.com/index.php?title=llSetStatus"><SPAN style="COLOR: #a00000; FONT-WEIGHT: bold; TEXT-DECORATION: none">llSetStatus</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN><A href="http://wiki.secondlife.com/index.php?title=Special:Search&go=Go&search=STATUS_PHYSICS"><SPAN style="COLOR: #0000a0; FONT-WEIGHT: bold; TEXT-DECORATION: none">STATUS_PHYSICS</SPAN></A>, <A href="http://wiki.secondlife.com/index.php?title=Special:Search&go=Go&search=TRUE"><SPAN style="COLOR: #0000a0; FONT-WEIGHT: bold; TEXT-DECORATION: none">TRUE</SPAN></A><SPAN style="COLOR: #66cc66">)</SPAN>;
        <SPAN style="COLOR: #ff7700">// Little pause to allow server to make potentially large linked object physical.</SPAN>
        <A href="http://wiki.secondlife.com/index.php?title=llSleep"><SPAN style="COLOR: #a00000; FONT-WEIGHT: bold; TEXT-DECORATION: none">llSleep</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN><SPAN style="COLOR: #cc66cc">0.1</SPAN><SPAN style="COLOR: #66cc66">)</SPAN>;
        <A href="http://wiki.secondlife.com/index.php?title=llMoveToTarget"><SPAN style="COLOR: #a00000; FONT-WEIGHT: bold; TEXT-DECORATION: none">llMoveToTarget</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN>pos,<SPAN style="COLOR: #cc66cc">0.4</SPAN><SPAN style="COLOR: #66cc66">)</SPAN>;
        <SPAN style="COLOR: #ff7700">// Look for owner within 20 meters in 360 degree arc every 1 seconds.</SPAN>
        <A href="http://wiki.secondlife.com/index.php?title=llSensorRepeat"><SPAN style="COLOR: #a00000; FONT-WEIGHT: bold; TEXT-DECORATION: none">llSensorRepeat</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN><SPAN style="COLOR: #00a000">""</SPAN>, <A href="http://wiki.secondlife.com/index.php?title=llGetOwner"><SPAN style="COLOR: #a00000; FONT-WEIGHT: bold; TEXT-DECORATION: none">llGetOwner</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN><SPAN style="COLOR: #66cc66">)</SPAN>, <A href="http://wiki.secondlife.com/index.php?title=Special:Search&go=Go&search=AGENT"><SPAN style="COLOR: #0000a0; FONT-WEIGHT: bold; TEXT-DECORATION: none">AGENT</SPAN></A>, <SPAN style="COLOR: #cc66cc">20.0</SPAN>, <A href="http://wiki.secondlife.com/index.php?title=Special:Search&go=Go&search=PI"><SPAN style="COLOR: #0000a0; FONT-WEIGHT: bold; TEXT-DECORATION: none">PI</SPAN></A>,<SPAN style="COLOR: #cc66cc">1.0</SPAN><SPAN style="COLOR: #66cc66">)</SPAN>;
    <SPAN style="COLOR: #66cc66">}</SPAN>
    <A href="http://wiki.secondlife.com/index.php?title=sensor"><SPAN style="COLOR: #00a0a0; FONT-WEIGHT: bold; TEXT-DECORATION: none">sensor</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN><A href="http://wiki.secondlife.com/index.php?title=integer"><SPAN style="COLOR: #007700; FONT-WEIGHT: bold; TEXT-DECORATION: none">integer</SPAN></A> total_number<SPAN style="COLOR: #66cc66">)</SPAN>
    <SPAN style="COLOR: #66cc66">{</SPAN>
        <SPAN style="COLOR: #ff7700">// Get position of detected owner</SPAN>
        <A href="http://wiki.secondlife.com/index.php?title=vector"><SPAN style="COLOR: #007700; FONT-WEIGHT: bold; TEXT-DECORATION: none">vector</SPAN></A> pos <SPAN style="COLOR: #66cc66">=</SPAN> <A href="http://wiki.secondlife.com/index.php?title=llDetectedPos"><SPAN style="COLOR: #a00000; FONT-WEIGHT: bold; TEXT-DECORATION: none">llDetectedPos</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN><SPAN style="COLOR: #cc66cc">0</SPAN><SPAN style="COLOR: #66cc66">)</SPAN>;
        <SPAN style="COLOR: #ff7700">// Offset back one metre in X and up one metre in Z based on world coordinates.</SPAN>
        <A href="http://wiki.secondlife.com/index.php?title=vector"><SPAN style="COLOR: #007700; FONT-WEIGHT: bold; TEXT-DECORATION: none">vector</SPAN></A> offset <SPAN style="COLOR: #66cc66">=<</SPAN><SPAN style="COLOR: #cc66cc">-1</SPAN>,<SPAN style="COLOR: #cc66cc">0</SPAN>,<SPAN style="COLOR: #cc66cc">1</SPAN><SPAN style="COLOR: #66cc66">></SPAN>;
<SPAN style="COLOR: #ff7700">//        offset = offset*llDetectedRot(0);  //Adding this line will orient the follower relative to the owner's position.</SPAN>
        pos<SPAN style="COLOR: #66cc66">+=</SPAN>offset;
        <A href="http://wiki.secondlife.com/index.php?title=llMoveToTarget"><SPAN style="COLOR: #a00000; FONT-WEIGHT: bold; TEXT-DECORATION: none">llMoveToTarget</SPAN></A><SPAN style="COLOR: #66cc66">(</SPAN>pos,<SPAN style="COLOR: #cc66cc">0.4</SPAN><SPAN style="COLOR: #66cc66">)</SPAN>;     
    <SPAN style="COLOR: #66cc66">}</SPAN>
<SPAN style="COLOR: #66cc66">}</SPAN></PRE><BR>
  <P>
  <HR>

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