08-17-2007 01:47
The function created from the lslwiki for moving an object between regions works great. Below is the function...
<-------
setGlobalPos(vector globalDest)
{
vector localDest;
do
{
localDest = globalDest - llGetRegionCorner();
llSetPos(localDest);
}
while (llVecDist(llGetPos(), localDest) > 0.1);
}


here is the actual code....

llSetPos(<1.34894,74.970,78.76291>;); //Position in Arcata Region
llSetRot(standard);
llWhisper(0,"Changing Region to Samoa";);
llSleep(2.0);
vector SAMOA_CORNER = <259584,254976,0.0>;
setGlobalPos(SAMOA_CORNER + <251.36485,74.970,78.76291>;);
state TramGoes2;
<----------

However sometimes the objects just vanish or become ghosted objects. Anyone got any input to this? I have build an inter regional tram which may work great for a few days, then the tram will vanish.

Blaccard Burks