Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

inter-region tp

Espresso Saarinen
old geek
Join date: 22 Jan 2006
Posts: 93
07-08-2006 14:51
trying to build a tp hub to get around a neighborhood that covers four sims/regions. llSitTarget is intra-region. i can not figure out how to hack inter-region tp. clue bat please.
Frosty Fox
Registered User
Join date: 28 Feb 2005
Posts: 18
07-08-2006 15:56
sum kinda seat with warpPos would do the trick if you no what your doing
WarpPos
Espresso Saarinen
old geek
Join date: 22 Jan 2006
Posts: 93
07-08-2006 16:25
among other kinky things, this calls llWarp2Pos(), which i can not see in the installed llib docs.

how about a script which just jumps to a named LM in the content of the same button object?

i am nonplussed that this is all not simple.
Espresso Saarinen
old geek
Join date: 22 Jan 2006
Posts: 93
07-08-2006 16:28
From: Espresso Saarinen
among other kinky things, this calls llWarp2Pos(), which i can not see in the installed llib docs.
doh. he defines llWarp2Pos() in the code. i thought llfoo was reserved!
Rodrick Harrington
Registered User
Join date: 9 Jul 2005
Posts: 150
07-08-2006 18:51
when someone sits on the object just llSetPos() to the location and unsit ( or better yet use the warppos function in script library to move), then move back for the next person. You can also have a dialog come up to have them select a loction first if you want multiple landing points.
_____________________
Frosty Fox
Registered User
Join date: 28 Feb 2005
Posts: 18
07-09-2006 06:31
heres a simple script that will goto landmarks in the same sim
simply add the script and some landmarks, sit on the prim and touch it and it will take you there, to get it to go to multipull sims requires things about....

CODE

// Warp to landmarks (same sim)
// FF

integer count;
string current_landmark;
key inventoryRequestID;


warpPos( vector destpos)
{
vector startpos = llGetPos();
if (destpos.z > 768)
destpos.z = 768;
integer jumps = (integer)(llVecDist(destpos, startpos) / 10.0) + 1;
if (jumps > 100 )
jumps = 100;
integer count = 2;
list rules = [ PRIM_POSITION, destpos ];
while (count < jumps) {
rules = (rules=[]) + rules + rules;
count = count << 1;
}
llSetPrimitiveParams(rules + llList2List( rules, (count - jumps) << 1, count) );
}


get_land_mark()
{
current_landmark = llGetInventoryName(INVENTORY_LANDMARK,count);
inventoryRequestID = llRequestInventoryData(current_landmark);
llSetText("Current Location \n"+current_landmark,<0,1,0>,1.0);
}

default
{

touch_start(integer x)
{
if(count==llGetInventoryNumber(INVENTORY_LANDMARK))count=0;
else count++;

get_land_mark();
}

dataserver(key requestID, string data)
{
if (requestID == inventoryRequestID)
{
inventoryRequestID = NULL_KEY;
warpPos((vector)data);
}
}

}
Bitzer Balderdash
Dazed and Confused
Join date: 21 Dec 2005
Posts: 246
07-09-2006 06:58
From: Espresso Saarinen
trying to build a tp hub to get around a neighborhood that covers four sims/regions. llSitTarget is intra-region. i can not figure out how to hack inter-region tp. clue bat please.


The key to it is that sim-relative co-ordinates are in the range 0 - 255 for x and y

which means that if you aim for a target point that is at, say, <-50,40,40> that is in the sim to your west.

or, equally, if you go to <305,40,40> that is in the sim to your east.

Hope that helps.

B