Difference between revisions of "LlMapDestination"

From Second Life Wiki
Jump to navigation Jump to search
m
m
Line 1: Line 1:
{{LSL_Function
{{Issues/VWR-2060}}{{Issues/VWR-7331}}{{LSL_Function
|func_id=309|func_sleep=1.0|func_energy=10.0
|func_id=309|func_sleep=1.0|func_energy=10.0
|func=llMapDestination|sort=MapDestination
|func=llMapDestination|sort=MapDestination
Line 37: Line 37:
|cat3=Avatar
|cat3=Avatar
|cat4=Touch
|cat4=Touch
|issues=
|issues
{{Issue|VWR-2060|type=bug|'''pos''' is sometimes replaced with incorrect data (workaround included)}}
{{Issue|VWR-7331|type=bug|status=fixp|height in '''pos''' is capped to 1000m (code patch included)}}
}}
}}

Revision as of 10:23, 25 October 2008

Summary

Function: llMapDestination( string simname, vector pos, vector look_at );
1.0 Forced Delay
10.0 Energy

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 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 omitted, map will open centered on object, but pos will not be highlighted

Examples

<lsl>//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);
    }
}</lsl>

Notes

  • pos will work with Region coordinates not inside simname. (like those 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

Signature

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