Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

climbing stairs script

Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
08-17-2009 02:28
I've build a ship and I want people to move (jump) between decks - I've tried using short range TP (ie. within a single region) but find two disadvantages:

1. as destination is within the ship, more times than not, the avatar ends up standing on the roof of the topmost level.

2. While the ship's location in static (doesn't move), I want to box it up and distribute it as a freebee - local region TP destinations have to be reset set each time the ship is rezzed in a different location.

Is there a script that allows me to move within linked objects - or can someone point me in the right direction to start possibly writing something of my own?

A bit like when you go into a house and you click the arrow at the bottom of the stairs and jump to the top without having to walk upo the stairs.

Thanks
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
08-17-2009 06:53
One simple tactic is to write a script that lets an av sit on an object, then sets its position to llGetPos()+z, unsits the av, and returns to the stored llGetPos(). That way, movement is all relative to the unit's initial starting point, so you don't have to reset the TP unit every time you move it.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask.... ;)

Look for my work in XStreetSL at
Tarak Voss
Meanderer
Join date: 14 Oct 2006
Posts: 330
08-17-2009 06:59
Good thinking Argonaut