|
Nikkita Tigerpaw
Registered User
Join date: 4 Feb 2008
Posts: 1
|
04-22-2008 00:56
Does anybody have information on how to create a teleport that takes people from one of my sims to another? The scripts I am finding only takes you to the coordinates that are on the same sim. I would greatly appreciate any help! -Nikkita Tigerpaw-
|
|
Dora Gustafson
Registered User
Join date: 13 Mar 2007
Posts: 779
|
04-22-2008 01:26
I only know of the way over the map: // Studio Dora d.2008-03-13
// http://www.lslwiki.net/lslwiki/wakka.php?wakka=llMapDestination
vector colour = < 1.0, 1.0, 0.0 >; // for hover text float transparancy = 1.0;
key request; string name; string sim_name; vector pos;
default { state_entry() { if(llGetInventoryNumber(INVENTORY_LANDMARK)) { name = llGetInventoryName(INVENTORY_LANDMARK,0); request = llRequestInventoryData(name); } else llWhisper(0,"Land Mark is missing"); } dataserver(key id, string data) { if(id == request) { pos = (vector)data; sim_name = llGetRegionName(); llSetText("Touch to show \""+name+"\" on the map.",colour,transparancy); } } touch_start(integer a) { if(name != "") llMapDestination(sim_name, pos, pos); } }
but it is not so bad after all happy scripting
_____________________
From Studio Dora
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
04-22-2008 12:26
There are other implementations that can work if there is a continuous path from the one region to the other (same island/continent) such as using a variation of the "WarpPos" hack that is aware of region boundaries, but llMapDestination() is definitely the most general-purpose inter-sim teleport option.
|