Jump to content
You are about to reply to a thread that has been inactive for 1600 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Posted

Hello.  does anyone know if there is a way to find locations on my World Map (I am using the Firestorm viewer if that makes a difference) using the Grid Region or the Grid Coordinates (rather than using sim or Region names and coordinates)?  Or is there another way to find them instead of the World Map?  Any information that you can provide would be appreciated.  Perhaps a better way of asking this question is if I know the Grid Region and/or the Grid Coordinates but not the name of the sim is there a way to find that location on the map?

Thanks,

Bindi

Posted

So if it's really about locating a point in the viewer Map, you can leverage the fact that the Map will use a position relative to the current region, even if that offset is huge or hugely negative. Quick and dirty script might look something like:

integer handle;

default
{
    touch_start(integer total_number)
    {
        llListenRemove(handle); // in case never replied (no timeout)
        integer chan = -1000000000 - (integer)llFrand(1000000000.0);
        key toucher = llDetectedKey(0);
        handle = llListen(chan, "", toucher, "");
        llTextBox(toucher, "Enter grid X, Y coordinates, a la \"262442, 245552\"", chan);
    }
    listen(integer channel, string name, key id, string text)
    {
        llListenRemove(handle);
        llMapDestination(llGetRegionName(), (vector)("<"+text+", 0.0>")-llGetRegionCorner(), ZERO_VECTOR);
    }
}

If you actually want to know the name of the region and follow proper Map API protocol, you can start with the "Region name from global coordinates" utility URL.

You are about to reply to a thread that has been inactive for 1600 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...