This is an example of a few things:
1. Put a single prim "button" on your viewer. I use a simple box (0.1m cube) and leave the Touch event enabled (as it is by default).
2. Insert a Landmark to a place your want to go frequently. My friend used this to simply her efforts to get into a region that was busy.
3. Have the script be simple: Ask permissions as rarely as possible, teleport without a lot of overhead, anticipate changes.
First, you add the object "(ADD) teleport to landmark on touch" to your outfit. It defaults to Top HUD position. It is possible your screen dimensions differ from mine, or you have something there already, so you might decide to Attach to HUD somewhere else, or simply edit its position to move it slightly. Again, I avoid more than one item attached anywhere because I was taught to avoid that.
Second, the script will reset if you are the new owner. That protects me from being teleported by new owners and makes the script work for you. It will also reset if you change the contents of the button, but changing your desired Landmark destination also requires a small change to the script - the name of the landmark you added. (By default this script will take you to Hippo Hollow, the Firestorm "quiet place" where I often go to make sure I've rezzed properly and whatever I am experiencing is not the fault of the region.)
Third, you are prompted to give the button permission to teleport you. You might not see the prompt, but it is waiting for you to say yes before it can do anything. I often find these in my Notifications window under System. Click that and it shouldn't bother you again until you change something.
Fourth, you click the button and admire the new scenery.
I hope you find this little script worthwhile. I am enjoying the time I spend here and part of that enjoyment is learning things and meeting people from everywhere. So, please have fun with this, fun with your day, your family and friends, and life in general.
- Single Prim Viewer Button, 0.1m in size
- Simple Linden Scripting Language script
- Single Landmark for targeted location
- Full Permissions, Copy, Modify, Transfer
- Easy means to retry hard to reach (full) locations
Very helpful!
Useful script combined with good script documentation in the script itself. Can be used for its usefulness OR as a learning tool. Nice work and ty!
Nice Work. Was easy to copy/paste and add this functionality to my Bot project.
A very simple script, somewhat cleaner than what I found on the Wiki. It was just a couple of copy/paste sequences to add this and leverlage my own landmarks. I plan to use this code to allow my Bots to move from regions as they shutdown and go to a safe house while they wait for it to come back.
Nicely done, Luni. Thank you.