Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Check location is valid before llMapDestination

Ethari Hallstrom
Registered User
Join date: 4 May 2007
Posts: 14
06-10-2008 10:50
Hi,

I've written a script that allows the user to teleport to a destination that is provided in a series of ways.

What I can't seem to figure out is how to check if that location is valid or not before opening llMapDestination. If I do that and the location is invalid, the map still pops up but does nothing.

It's really important my script is able to detect if the location is valid or not before doing that, so it can warn the user so they can fix it.

Is there any way to do this? I've tried looking for functions to check if a region name exists, but I can't find any. This is ridiculous.

Am I stuck without ever knowing if the location is valid or not?

Thank you!
Cid Jacobs
Theoretical Meteorologist
Join date: 18 Jul 2004
Posts: 4,304
06-10-2008 11:33
http://lslwiki.net/lslwiki/wakka.php?wakka=llRequestSimulatorData
_____________________
Ethari Hallstrom
Registered User
Join date: 4 May 2007
Posts: 14
06-24-2008 16:29
Oh, thank you! I'm sure I saw this function but I don't know why I dismissed it. Strange that... I must have thought when it said "simulator" it meant the server, not the region.

This is a great help. I'll try it now.

Thank you :)