The problem i'm running into is that the script i started with requires the destination *before* the av sits. Any idea how I could accomplish this?
Thanks in advance!
J-
These forums are CLOSED. Please visit the new forums HERE
Teleport Script question |
|
|
Jeanette Hailey
Diva Designs
Join date: 11 Mar 2005
Posts: 185
|
07-11-2006 19:11
Hi everyone! I'm trying to write a script that will go in a seat. When you sit in it, it will give you a dialog of possible locations and when you select it, it takes you to those coords.
The problem i'm running into is that the script i started with requires the destination *before* the av sits. Any idea how I could accomplish this? Thanks in advance! J- _____________________
.-~+*Diva*+~-.
Sprocket Island: http://slurl.com/secondlife/Sprocket/68/127/22 |
|
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
|
07-11-2006 19:58
You probably need to move the initialization and teleport code to a listen, and then trigger an llDialog when someone sits on it. My WarpPos teleporter code might be the best suited to this, because most other teleporters work using sit targets.
Here's the code to my teleporter: CODE
Or, you could post up the code to the teleporter that you're working from. _____________________
|
|
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
|
07-11-2006 20:32
aye, if you change the sit target while someone is sitting it wont take effect untill the next person sits, so your looking at something like a touch (or listen, but im usually not happy reading a manual for everything i own for commands) to start off the llDialog, then ask the user to sit afterwards ...
in my personall use its usually a clunky experiance and usually end up with a elevator contraption (usually using Warp Pos) it would flow something like this av sit's dialog av choice made, rez a copy of the device (so theres one for the next person) move the prim the av is sitting on unsit die http://secondlife.com/badgeo/wakka.php?wakka=LibraryWarpPos course my latest project (at New Citizens, still has a kink or 2) uses a map and red dot prims ![]() |
|
Jeanette Hailey
Diva Designs
Join date: 11 Mar 2005
Posts: 185
|
07-13-2006 00:30
Hi again! Thanks to Keknehv's help, I was able to modify his script to allow notecard configuration for multiple destinations. Since he was kind enough to start me out, I thought it was only right to post my new version. It works fabulous. All you need is a notecard in the object formatted as follows:
Destination 1 <123, 128, 50> Destination 2 <74, 86, 20> (etc. with no blank lines) Here is the code: CODE list rules; _____________________
.-~+*Diva*+~-.
Sprocket Island: http://slurl.com/secondlife/Sprocket/68/127/22 |