llMapDestination

From Second Life Wiki
Revision as of 01:47, 25 November 2007 by Void Singer (talk | contribs) (added caveat, notes, minor minor wording changes. moved comment to prevent page scrolling)
Jump to navigation Jump to search

Summary

Function: llMapDestination( string simname, vector pos, vector look_at );

Opens world map centered on simname with pos highlighted.
Only works for scripts attached to avatar, or during touch events.

• string simname Region name
• vector pos Global or Region coordinates
• vector look_at not used

(NOTE: look_at currently does nothing)

Caveats

  • This function causes the script to sleep for 1.0 seconds.
  • if simname is ommited, map will open centered on object, but pos will not be higlighted
  • pos is sometimes replaced with incorrect data. See VWR-2060 for details/workaround.
All Issues ~ Search JIRA for related Bugs

Examples

//Click the object this script is in and your map opens up in the middle of Oasis.
default
{
     touch_start(integer num)
     {
          llMapDestination("Oasis", <128, 128, 0>, ZERO_VECTOR);
     }
}

Notes

  • pos will work with Global coordinates. (eg. as returned by llRequestInventoryData)
  • if called from an event other than touch, it only works for the owner.
  • if called from touch, it may only work for the first or last touch in the event queue (example: num_touched > 1)

See Also

Functions

•  llRequestInventoryData

Deep Notes

Search JIRA for related Issues

Signature

function void llMapDestination( string simname, vector pos, vector look_at );