|
Angelo Beauchamp
Registered User
Join date: 6 Jul 2008
Posts: 24
|
04-29-2009 02:41
Hi all - and thanks in advance already for any help with this one.
As the title suggests, I'm stumped on what I'd call "relative" teleporting, No, this isn't the ability to move all one's siblings/alts at the same time, but rather, a teleporting script which, regardless of where the object is rezzed, simply teleports the operator up 8m from the current location.
Let me explain the usage I forsee, just in case there's an elegant solution. I'm in the middle of a house build, which will have two, possibly three, storeys. And I might even decide to go out and sell it. But in order to keep the prim count down, and maintain the clean lines, I've decided to do without stair, but rather tp from floor to floor.
My problem is, that all tp scripts that I've "disassembled" so far, rely on a fixed X,Y.Z position being hardcoded into either the script or a notecard. I'm looking for something that, regardless of where the house is rezzed in future, allows the tenant to just be moved upwards by 8m (the height of a storey).
The little plead is that if someone can steer me in the right direction (no pun intended), I'd appreciate it. The BIG PLEAD (of course) is that if someone has a working copy of the script I'd need, in its entirety or close to, if they could post it here.
Again, many thanks for the help.
|
|
Anya Ristow
Vengeance Studio
Join date: 21 Sep 2006
Posts: 1,243
|
04-29-2009 03:55
What you're looking for is a sit teleporter. Try looking for that and see if you have better luck.
_____________________
The Vengeance Studio Gadget Store is closed! 
|
|
Tabliopa Underwood
Registered User
Join date: 6 Aug 2007
Posts: 719
|
04-29-2009 05:23
Is quite a number of scripting groups you can join inworld, where people always willing to help with these kinds of things. Just Search groups for SCRIPT. Many of the helpy organisations and groups listed, allow you to freely join and also allow you to ask questions in group chat.
|
|
Beverly Ultsch
Registered User
Join date: 6 Sep 2007
Posts: 229
|
04-29-2009 08:21
Quick answer, at the point where it does the tp, (will look something like teleport(<x,y,z). Or whatever they called the function or used for the function call, with out seeing the script i cant tell. replace <x,y,z> with llGetPos() + <0.0, 0.0, 8.0> and that should do it. PS: I reserve the right to be wrong  Edit: I also reserve the right to typos
|
|
Viktoria Dovgal
…
Join date: 29 Jul 2007
Posts: 3,593
|
04-29-2009 08:24
llSitTarget already uses a relative position, and the scripts that take an absolute position are the ones that subtract llGetPos(). To get relative, the llGetPos() subtraction is what you want to remove (that is, raw llSitTarget already does what you want).
|
|
Angelo Beauchamp
Registered User
Join date: 6 Jul 2008
Posts: 24
|
Many Many Thanks
04-30-2009 05:06
Like the title says - many thanks to everyone who contributed here - problem solved, one happy avatar.
AB x
|