XbabylonX Posted March 13, 2014 Share Posted March 13, 2014 Hello,I was reading the following articlehttp://wiki.secondlife.com/wiki/Linden_Lab_Official:Map_API_Introductionand at the "Accesing map images directly" paragraph, provides an example:X,Y - X and Y coordinates on the Second Life Grid of the region, for example, region Ahern is (997,1002).Says Ahern coordinates are 997-1002. I dont know how one can get these numbers for any sim.Some lights please? PS Im sorry if this is not the correct forum to post it! Link to comment Share on other sites More sharing options...
Dora Gustafson Posted March 13, 2014 Share Posted March 13, 2014 With the llRequestSimulatorData() you can get the sim's coordinates when you know the name With llGetRegionCorner() you can get the corner coordinates for the region the script is in :smileysurprised::smileyvery-happy: Link to comment Share on other sites More sharing options...
Qie Niangao Posted March 13, 2014 Share Posted March 13, 2014 Right, or if you just need those coordinates for a specific sim (not in LSL), can call the cap with a URL like this: https://cap.secondlife.com/cap/0/d661249b-2b5a-4436-966a-3d3b8d7a574f?var=coords&sim_name=Ahern as documented on the Map API Reference page. (The "opposite" cap was broken for a long, long time, but they both seem to work again at the moment.) Also, a minor detail about using LSL to find the map grid coordinates of a region: those are actually the global coordinates of the region's corner divided by 256 -- that is, llGetRegionCorner() and llRequestSimulatorData() return global coordinates in 1-meter units, and the map grid uses global coordinates in one-region units. Link to comment Share on other sites More sharing options...
XbabylonX Posted March 13, 2014 Author Share Posted March 13, 2014 Thank you so much both! Link to comment Share on other sites More sharing options...
Recommended Posts
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