http://opensimulator.org/index.php?title=OsLocalTeleportAgent&feed=atom&action=historyOsLocalTeleportAgent - Revision history2024-03-29T14:36:51ZRevision history for this page on the wikiMediaWiki 1.19.9http://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=51181&oldid=prevUbit at 01:38, 17 September 20212021-09-17T01:38:12Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 01:38, 17 September 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 29:</td>
<td colspan="2" class="diff-lineno">Line 29:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The avatar must have rights to enter the target position.<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The avatar must have rights to enter the target position.<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>The avatar must had granted PERMISSION_TELEPORT to the script or the owner of the prim containing the script <del class="diffchange diffchange-inline">must </del>also be owner of the parcel where the avatar is currently on.<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>The avatar must had granted PERMISSION_TELEPORT to the script or the owner of the prim containing the script <ins class="diffchange diffchange-inline">is </ins>also be owner of the parcel where the avatar is currently on.<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The function will fail silently if conditions are not meet.<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>The function will fail silently if conditions are not meet.<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td></tr>
</table>Ubithttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=51143&oldid=prevUbit at 17:54, 15 September 20212021-09-15T17:54:50Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 17:54, 15 September 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 25:</td>
<td colspan="2" class="diff-lineno">Line 25:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</source></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|description=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|description=</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"><div style="background-color:#FFA0A0; padding:10px; padding-bottom:5px; border: 1px #FF544F solid"></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">'''Caution !''' still experimental, subject to changes</del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;"></div></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Teleports an avatar with uuid agentID to the specified newPosition within same region.<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>Teleports an avatar with uuid agentID to the specified newPosition within same region.<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>It ignores region teleport settings like Telehub or landpoint<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>It ignores region teleport settings like Telehub or landpoint<br></div></td></tr>
</table>Ubithttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=50517&oldid=prevManni at 13:44, 11 January 20212021-01-11T13:44:24Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 13:44, 11 January 2021</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 36:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- If newPosition is outside the region the target will be at nearest region border.<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- If newPosition is outside the region the target will be at nearest region border.<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>- newVelocity, if selected with optionFlags bit 0 set, should set a avatar velocity, but may only work with ubOde Physics engine, even so results may be a bit unpredictable. It will stop if the avatar collides with anything at destination or if the user presses a movement key. It also has a fast decay. This behavior will need future changes. If bit 0 is not set, current velocity is kept<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>- newVelocity, if selected with optionFlags bit 0 set, should set a avatar velocity, but may only work with ubOde Physics engine, even so results may be a bit unpredictable.  </div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>- newLookAt, if selected with optionFlags bit 1 set, changes the avatar look at direction. Bit 2 can alternatively be used to align the look at to the velocity, if that is not zero vector. Camera direction will depend on viewer camera state at teleport time (like camera attached to avatar or free). Look at is the direction the avatar head will face. Body will face close to that, depending on viewers. Look At Z component is zero. If both bits are not set, the look at direction will be the current camera direction<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>It will stop if the avatar collides with anything at destination or if the user presses a movement key.  </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>It also has a fast decay. This behavior will need future changes. If bit 0 is not set, current velocity is kept<br></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>- newLookAt, if selected with optionFlags bit 1 set, changes the avatar look at direction.  </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Bit 2 can alternatively be used to align the look at to the velocity, if that is not zero vector.  </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Camera direction will depend on viewer camera state at teleport time (like camera attached to avatar or free).  </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>Look at is the direction the avatar head will face. Body will face close to that, depending on viewers. Look At Z component is zero.  </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>If both bits are not set, the look at direction will be the current camera direction<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td></tr>
</table>Mannihttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=47692&oldid=prevUbit at 22:42, 2 May 20192019-05-02T22:42:44Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 22:42, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 9:</td>
<td colspan="2" class="diff-lineno">Line 9:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector TPvel = <0,0,0>;</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector TPvel = <0,0,0>;</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector LookAt = <1,1,0>; // which way they look at when arriving</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector LookAt = <1,1,0>; // which way they look at when arriving</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del class="diffchange diffchange-inline">integer TPoptions = 2; // face the provided LookAt</del></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div> </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>default</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>default</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 21:</td>
<td colspan="2" class="diff-lineno">Line 21:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     key avatar = llDetectedKey(0);</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     key avatar = llDetectedKey(0);</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     llInstantMessage(avatar, "Teleporting you to : " + (string)LandingPoint);</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     llInstantMessage(avatar, "Teleporting you to : " + (string)LandingPoint);</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>     osLocalTeleportAgent(avatar, LandingPoint, TPvel, LookAt, <del class="diffchange diffchange-inline">TPoptions</del>);  </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>     osLocalTeleportAgent(avatar, LandingPoint, TPvel, LookAt, <ins class="diffchange diffchange-inline">OS_LTPAG_USELOOKAT | OS_LTPAG_FORCEFLY</ins>);  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   }</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</source></div></td></tr>
</table>Ubithttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=47668&oldid=prevUbit at 01:51, 2 May 20192019-05-02T01:51:07Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 01:51, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 40:</td>
<td colspan="2" class="diff-lineno">Line 40:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>bit 0 (<del class="diffchange diffchange-inline">mask 1</del>): use newVelocity<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>bit 0 (<ins class="diffchange diffchange-inline">OS_LTPAG_USEVEL</ins>): use newVelocity<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>bit 1 (<del class="diffchange diffchange-inline">mask 2</del>): use newLookAt<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>bit 1 (<ins class="diffchange diffchange-inline">OS_LTPAG_USELOOKAT</ins>): use newLookAt<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>bit 2 (<del class="diffchange diffchange-inline">mask 4</del>): align lookat to velocity if it is not zero vector<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>bit 2 (<ins class="diffchange diffchange-inline">OS_LTPAG_ALGNLV</ins>): align lookat to velocity if it is not zero vector<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>bit 3 (<del class="diffchange diffchange-inline">mask 8</del>): force fly.<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>bit 3 (<ins class="diffchange diffchange-inline">OS_LTPAG_FORCEFLY</ins>): force fly.<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>bit 4 (<del class="diffchange diffchange-inline">mask 16</del>): force no fly. Will not work if viewer has fly after teleport option set<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>bit 4 (<ins class="diffchange diffchange-inline">OS_LTPAG_FORCENOFLY</ins>): force no fly. Will not work if viewer has fly after teleport option set<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>if both bits 1 and 2 are set bit 2 is ignored<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>if both bits 1 and 2 are set bit 2 is ignored<br></div></td></tr>
</table>Ubithttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=47608&oldid=prevUbit at 00:10, 2 May 20192019-05-02T00:10:28Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 00:10, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 36:</td>
<td colspan="2" class="diff-lineno">Line 36:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- If newPosition is outside the region the target will be at nearest region border.<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- If newPosition is outside the region the target will be at nearest region border.<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>- newVelocity, if selected <del class="diffchange diffchange-inline">in </del>optionFlags bit 0, should set a avatar velocity, but may only work with ubOde Physics engine, even so results may be a bit unpredictable. It will stop if the avatar collides with anything at destination or if the user presses a movement key. It also has a fast decay. This behavior will need future changes. If bit 0 is not set, current velocity is kept<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>- newVelocity, if selected <ins class="diffchange diffchange-inline">with </ins>optionFlags bit 0 <ins class="diffchange diffchange-inline">set</ins>, should set a avatar velocity, but may only work with ubOde Physics engine, even so results may be a bit unpredictable. It will stop if the avatar collides with anything at destination or if the user presses a movement key. It also has a fast decay. This behavior will need future changes. If bit 0 is not set, current velocity is kept<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>- newLookAt, if selected <del class="diffchange diffchange-inline">in </del>optionFlags bit 1, changes the avatar look at direction. Bit 2 can alternatively be used to align the look at to the velocity, if that is not zero vector. Camera direction will depend on viewer camera state at teleport time (like camera attached to avatar or free). Look at is the direction the avatar head will face. Body will face close to that, depending on viewers. Look At Z component is zero. If both bits are not set, the look at direction will be the current camera direction<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>- newLookAt, if selected <ins class="diffchange diffchange-inline">with </ins>optionFlags bit 1 <ins class="diffchange diffchange-inline">set</ins>, changes the avatar look at direction. Bit 2 can alternatively be used to align the look at to the velocity, if that is not zero vector. Camera direction will depend on viewer camera state at teleport time (like camera attached to avatar or free). Look at is the direction the avatar head will face. Body will face close to that, depending on viewers. Look At Z component is zero. If both bits are not set, the look at direction will be the current camera direction<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td></tr>
</table>Ubithttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=47607&oldid=prevUbit at 00:09, 2 May 20192019-05-02T00:09:23Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 00:09, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 4:</td>
<td colspan="2" class="diff-lineno">Line 4:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|delay=0</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|delay=0</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|additional_info=</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|additional_info=</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>|function_syntax=<del class="diffchange diffchange-inline">void </del>osLocalTeleportAgent(key agentID, vector newPosition, vector newVelocity, vector newLookat, integer optionFlags)</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>|function_syntax= osLocalTeleportAgent(key agentID, vector newPosition, vector newVelocity, vector newLookat, integer optionFlags)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang="lsl"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang="lsl"></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector LandingPoint = <128,128,50>; // X,Y,Z landing point for avatar to arrive at</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector LandingPoint = <128,128,50>; // X,Y,Z landing point for avatar to arrive at</div></td></tr>
</table>Ubithttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=47606&oldid=prevUbit at 00:08, 2 May 20192019-05-02T00:08:18Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 00:08, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 7:</td>
<td colspan="2" class="diff-lineno">Line 7:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang="lsl"></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|ossl_example=<source lang="lsl"></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector LandingPoint = <128,128,50>; // X,Y,Z landing point for avatar to arrive at</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector LandingPoint = <128,128,50>; // X,Y,Z landing point for avatar to arrive at</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">vector TPvel = <0,0,0>;</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector LookAt = <1,1,0>; // which way they look at when arriving</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>vector LookAt = <1,1,0>; // which way they look at when arriving</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div><ins style="color: red; font-weight: bold; text-decoration: none;">integer TPoptions = 2; // face the provided LookAt</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>//</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>default</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>default</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 19:</td>
<td colspan="2" class="diff-lineno">Line 21:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     key avatar = llDetectedKey(0);</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     key avatar = llDetectedKey(0);</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     llInstantMessage(avatar, "Teleporting you to : " + (string)LandingPoint);</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>     llInstantMessage(avatar, "Teleporting you to : " + (string)LandingPoint);</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>     osLocalTeleportAgent(avatar, LandingPoint, <del class="diffchange diffchange-inline">ZEROVECTOR</del>, LookAt, <del class="diffchange diffchange-inline">2</del>);  </div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>     osLocalTeleportAgent(avatar, LandingPoint, <ins class="diffchange diffchange-inline">TPvel</ins>, LookAt, <ins class="diffchange diffchange-inline">TPoptions</ins>);  </div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   }</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>   }</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</source></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}</source></div></td></tr>
</table>Ubithttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=47605&oldid=prevUbit at 00:04, 2 May 20192019-05-02T00:04:54Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 00:04, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 35:</td>
<td colspan="2" class="diff-lineno">Line 35:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- If newPosition is outside the region the target will be at nearest region border.<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- If newPosition is outside the region the target will be at nearest region border.<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- newVelocity, if selected in optionFlags bit 0, should set a avatar velocity, but may only work with ubOde Physics engine, even so results may be a bit unpredictable. It will stop if the avatar collides with anything at destination or if the user presses a movement key. It also has a fast decay. This behavior will need future changes. If bit 0 is not set, current velocity is kept<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- newVelocity, if selected in optionFlags bit 0, should set a avatar velocity, but may only work with ubOde Physics engine, even so results may be a bit unpredictable. It will stop if the avatar collides with anything at destination or if the user presses a movement key. It also has a fast decay. This behavior will need future changes. If bit 0 is not set, current velocity is kept<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>- newLookAt, if selected in optionFlags bit 1, changes the avatar <del class="diffchange diffchange-inline">head facing </del>direction<del class="diffchange diffchange-inline">, body will face close to that</del>. <del class="diffchange diffchange-inline">bit </del>2 can alternatively be used to align the look at to the velocity, if that is not zero vector. Camera direction will depend on viewer <del class="diffchange diffchange-inline"> </del>camera state at teleport time (like camera attached to avatar or free). <del class="diffchange diffchange-inline">newLookAt (and final lookAt) </del>is <del class="diffchange diffchange-inline">a </del>direction <del class="diffchange diffchange-inline">and its </del>Z is zero. If both bits are not set, the direction will be the current camera direction<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>- newLookAt, if selected in optionFlags bit 1, changes the avatar <ins class="diffchange diffchange-inline">look at </ins>direction. <ins class="diffchange diffchange-inline">Bit </ins>2 can alternatively be used to align the look at to the velocity, if that is not zero vector. Camera direction will depend on viewer camera state at teleport time (like camera attached to avatar or free). <ins class="diffchange diffchange-inline">Look at </ins>is <ins class="diffchange diffchange-inline">the </ins>direction <ins class="diffchange diffchange-inline">the avatar head will face. Body will face close to that, depending on viewers. Look At </ins>Z <ins class="diffchange diffchange-inline">component </ins>is zero. If both bits are not set, the <ins class="diffchange diffchange-inline">look at </ins>direction will be the current camera direction<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td></tr>
</table>Ubithttp://opensimulator.org/index.php?title=OsLocalTeleportAgent&diff=47604&oldid=prevUbit at 00:01, 2 May 20192019-05-02T00:01:07Z<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black;">Revision as of 00:01, 2 May 2019</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 34:</td>
<td colspan="2" class="diff-lineno">Line 34:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- If newPosition is outside the region the target will be at nearest region border.<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- If newPosition is outside the region the target will be at nearest region border.<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>- newVelocity, if selected in optionFlags bit 0, should set a avatar velocity, but may only work with ubOde Physics engine, even so results may be a bit unpredictable. It will stop if the avatar collides with anything at destination or if the user presses a movement key. It also has a fast decay. This behavior will need future changes.<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>- newVelocity, if selected in optionFlags bit 0, should set a avatar velocity, but may only work with ubOde Physics engine, even so results may be a bit unpredictable. It will stop if the avatar collides with anything at destination or if the user presses a movement key. It also has a fast decay. This behavior will need future changes. <ins class="diffchange diffchange-inline">If bit 0 is not set, current velocity is kept</ins><br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>- newLookAt, if selected in optionFlags bit 1, changes the avatar head facing direction, body will face close to that. bit 2 can alternatively be used to align the look at to the velocity <del class="diffchange diffchange-inline">at arrival </del>if that is not <del class="diffchange diffchange-inline">Zero</del>. Camera direction will depend on viewer  camera state at teleport time (like camera attached to avatar or free). newLookAt and final lookAt is a direction and its Z is zero<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>- newLookAt, if selected in optionFlags bit 1, changes the avatar head facing direction, body will face close to that. bit 2 can alternatively be used to align the look at to the velocity<ins class="diffchange diffchange-inline">, </ins>if that is not <ins class="diffchange diffchange-inline">zero vector</ins>. Camera direction will depend on viewer  camera state at teleport time (like camera attached to avatar or free). newLookAt <ins class="diffchange diffchange-inline">(</ins>and final lookAt<ins class="diffchange diffchange-inline">) </ins>is a direction and its Z is zero<ins class="diffchange diffchange-inline">. If both bits are not set, the direction will be the current camera direction</ins><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>- OptionFlags is a bit field:<br></div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 42:</td>
<td colspan="2" class="diff-lineno">Line 42:</td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>bit 2 (mask 4): align lookat to velocity if it is not zero vector<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>bit 2 (mask 4): align lookat to velocity if it is not zero vector<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>bit 3 (mask 8): force fly.<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>bit 3 (mask 8): force fly.<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>bit 4 (mask 16): force no fly. Will not work if viewer <del class="diffchange diffchange-inline">as </del>fly after teleport option set<br></div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>bit 4 (mask 16): force no fly. Will not work if viewer <ins class="diffchange diffchange-inline">has </ins>fly after teleport option set<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div><br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>if both bits 1 and 2 are set bit 2 is ignored<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>if both bits 1 and 2 are set bit 2 is ignored<br></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>if both bits 3 and 4 are set bit 4 is ignored<br></div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>if both bits 3 and 4 are set bit 4 is ignored<br></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div><del style="color: red; font-weight: bold; text-decoration: none;">if optionFlags is zero, current avatar parameters will be preserved.<br></del></div></td><td colspan="2"> </td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>|</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>}}</div></td></tr>
</table>Ubit