Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Simple Variable Teleporter

Danito Takacs
Registered User
Join date: 21 Feb 2007
Posts: 2
09-07-2007 08:45
Here's what I'm trying to accomplish:
Make a variable teleporter able to be generically slapped into a house that will go from floor to floor without setting coordintes.

I can see that the functions are available in LSL, but I'm lost as to the right syntax to be able to implement it.
I can make several of them...one for 5m difference, 6m, 7m and so on. I plan on having two...one for "higher" (z+5, 6, 7...whatever) and one for "lower" (z-,5 6, 7...whatever).

I have several generic teleport scripts where I can just plug in the numbers and be done with it, but I'm wanting to be able to put this into some houses I'm building and it won't matter where it's placed, because llGetPos will tell the prim where it's at. I simply want to be able to stick a "teleport up" button on the wall and have it function to move any avatar up to the level of the next floor up.

Does anyone know precisely how to do this?

Thanks.
Larrie Lane
Registered User
Join date: 9 Feb 2007
Posts: 667
09-07-2007 09:29
Danito

I am not a scripter, but from what you are describing these scripts do exist, I actually have one that I use for prefabs, so when somenbody purchases the house and then rez it, the co-ords are automatically set with no adjustments or input or new co-ords.

Don't want to name people here on the forums who they are from so IM me in world if you want.

FYI, the scripts cannot be modified or resold unless bundled in a build.
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
09-07-2007 09:41
Yeah somebody posted a script like that a very short time ago that does exactly what you're saying, just search this forum. The one I wrote just reads a note card for locations then presents a menu. Simple but it works. The caveat is that there must be a 'down button' sitting upstairs talking to the up button to sort things out, otherwise there's no way to know where upstairs is.

If I wanted to have it autodiscover other teleporters I'd probably just use the llRegionSay command on a known channel every time a teleporter is dropped. Have all teleporters listen and behave something like this:

on_rez: say "discover"

listen: if msg="discover" then add this TP to the list, also llEmail the new teleporter my own information so that it can add me to its table as well.

Not really much more to it outside of the standard freebie sit teleporter scripts. There is a little familiarity with LSL involved, as with creating any script.
Lyn Mimistrobell
(waiting)
Join date: 11 Jan 2007
Posts: 179
09-07-2007 12:45
I have a teleporter that broadcasts it's location to the region, for others to pick up. They only pick up others from the same owner (incase your neighbours use the same), and it's very basic with no access list. It uses object names to show in a dialog.

Only problem with LSL is that there is no derez event, so you have to kill it thru the owner's only dialog options so that it can broadcast it's removal before it's actually deleted.

IM me inworld for a copy of the script.