Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Reading landmark coordinates

Ricky Yates
(searching...)
Join date: 28 Jan 2007
Posts: 809
11-06-2007 08:29
Is anybody aware of a way to read out the region and coordinates of a landmark (assuming the LM's UUID is known) from within an LSL script?

Ideally, I would like to code functions like ...

> vector getLandmarkCoordinates (key lm_uuid)
> string getLandmarkRegion (key lm_uuid)

Is this possible?

Many thanks in advance.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-06-2007 17:04
currently landmarks return their SL global coordinates when using LlRequestInventoryData which you can then feed to llMapDestination to pop open the map to the selected coodinates...

the current system doesn't allow you to pull the region name/coodinates but there is a work-around

for normal (ie not renamed) LM's you can use llGetInventoryName, and parse out the name and coodinates using llParseString2List
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Ricky Yates
(searching...)
Join date: 28 Jan 2007
Posts: 809
11-07-2007 04:47
Thanks. Good point!

llRequestInventoryData seems to do the trick for the coordinates within the region.
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
11-07-2007 05:41
From: Ricky Yates
Thanks. Good point!

llRequestInventoryData seems to do the trick for the coordinates within the region.

works outside it to, I used it to make a quickie tp hud for some of my more frequent hangouts/friends land/sandboxes
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -