|
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
|
04-13-2009 20:49
Hi everyone. Are llTarget and at_target limited to region coordinates? I am moving across sims and already use a timer, so I can make do with a delta check. But now that I have given up on at_target I need to know if it was supposed to work or I will never sleep.
Thanks!
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-13-2009 23:25
I would assume that they are limited to region coordinates since that is what would be provided to the script by the server...
however it might still be workable using coordinates past the limits, updating range markers, and swapping positions when detecting a new sim. seems like a lot of work though.
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
|
04-14-2009 11:33
That is where my head exploded. The sim is smart enough to make llSetPos and llMoveToTarget work out of range to cross a boundary, but it is not smart enough to translate llTarget when it hands off. I stayed up too late to find sense in it.
It works if the x and y are set over 256 or under 0 and the range is long enough to reach inside the sim with the object. at_target runs inside the slice of the ball that is in the same sim, the rest of the ball in the other sim doesn't make anything happen. If the range is too small to reach inside the sim then at_target can't run. If the target ball reaches inside the same sim, you get that target in every sim on the grid. For llTarget(<100, 20, 3000>, 20) , at_target runs at those coordinates in every sim the object visits.
Zzzzzzz.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
04-14-2009 12:53
instead of making a huge target, try maybe a small one? use an over limit target, but then swap it for the local version when it changes sims? and what exactly is it chasing for a target? for instance if it tracks an av using a sensor you can use that to update your target correctly for the sim you're in.
if you make many smaller hops you'll always have a good idea what sim it is you've entered so having a region changed event trigger an update of the target?
just some ideas to play with once you are awake and not cross-eyed from looking at it
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Cerise Sorbet
Registered User
Join date: 8 Jun 2008
Posts: 254
|
04-14-2009 13:23
Thanks for the ideas! I think I am going to try a bounds check against llGetRegionCorner when CHANGED_REGION happens, and only set the target when it is local. None of this really matters because polling works, but I feel compelled to tilt at this windmill.
|