Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Teleport home problem

Bobby Dayton
Test Pilot for Airfix
Join date: 15 Nov 2003
Posts: 206
05-30-2005 06:23
I am trying to make a teleport home script in a pendant. I can't seem to get it to teleport.

This is the code. Any ideas.

I added a line to print the key to see if it was that.

CODE

default
{
state_entry()
{
llSay(0, "Starting up");
}

touch_start(integer total_number)
{
key owner = llDetectedOwner(0);
llSay(0, "Teleporting Home");
llSay(0, owner);
llTeleportAgentHome(owner);

}
}
Judah Jimador
Registered User
Join date: 13 Mar 2005
Posts: 230
05-30-2005 07:28
I'm not sure if this is comprehensive, but I see a couple of potential problems.

First, since only avies can touch, you could probably replace llDetectedOwner() with llDetectedKey(0).

Second, the teleport home feature will only fire if the target is over land which you own.

-- jj
Bobby Dayton
Test Pilot for Airfix
Join date: 15 Nov 2003
Posts: 206
05-30-2005 09:27
Oh well that kills that idea. Thanks anyway.