|
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
|
09-04-2008 12:54
Hi all
Hoping for a steer in the right direction here.....
I have a script that stores a series of checkpoints in a list, and then uses llMoveToTarget to move an object from one checkpoint to the next, cycling thro' the list. This works very well within a single region.
However, when attempting to use the script as it currently is to move from one region to another, it stops at the sim border and goes no further.
So, my question is...
....using llMoveToTarget (preferably), how can I script "Move in a straight-line from Position 99 on Sim A to Position 01 on Sim B"?
Thanks in advance
_____________________
http://wiki.secondlife.com/wiki/User:debbie_Trilling
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
09-04-2008 17:31
Did you see this page Debbie? http://lslwiki.net/lslwiki/wakka.php?wakka=globalcoordinateExpand the comments for a couple of notes from Strife also.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Beverly Ultsch
Registered User
Join date: 6 Sep 2007
Posts: 229
|
09-04-2008 18:13
You need to use either negative numbers or numbers graeter than 256.
eg: you are in simA move close to the sim border say <250, 0, 0> then move to <260,0,0> now you are at <4,0,0> in simB. To move back go to <-10, 0,0> this puts you back in to simA at <250,0,0>. Once you have crossed the border start using the local co-ords for the new sim.
It is very advisable to pause for a few seconds before crossing the border, this gives the adjacent sim time to notice you.
|
|
Debbie Trilling
Our Lady of Peenemünde
Join date: 17 Oct 2006
Posts: 434
|
09-05-2008 01:05
Thanks for both of these responses. I think the idea suggested by Beverly was something like was I originally searching for, and can see how it would work. However, the link provided by Jesse actually solves the problem far more directly and with the least number of changes to the exisitng script. Not only that, but it is a totally new LSL concept for me and that in itself makes it very inviting and exciting  The fact that by simply changing "llGetPos()" to "llGetRegionCorner() + llGetPos()" will transform a single-region capable script into a multi-region capable script has to be awarded my "LSL Discovery of the Month"! Thanks again.
_____________________
http://wiki.secondlife.com/wiki/User:debbie_Trilling
|