Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

tracking objects in the next sim

Catfart Grayson
Registered User
Join date: 16 May 2004
Posts: 264
08-13-2004 13:19
Evening all,

Still having trouble moving objects across the boundary between sims.

I want to get one object to follow a object/player. But as soon as the target moves into another sim, the tracker cannot find the target via a sensor event.

I'd assumed that llSensor worked across sim boundaries. If not, how do homing bullets and those followers track their targets?

Thanks in advance

Cat
Klintel Kiesler
Registered User
Join date: 31 Dec 2003
Posts: 51
08-13-2004 13:45
Homing bullets as well use llSensor events, however you can not use sensors to track something across sims, sometimes you get lucky though and an object will accidently move past the sim border and still track the object/avatar.

The best way I can think of having an object follow something else across a sim border is an llEmail event with the global coords listed or check the current position of the object and try to determine which direction to move across a sim borderif a target can not be found - this however, would not work in some instances.

The next thing you can do is try to keep the object as close to the object/avatar as possible so if they cross a sim border you have a better chance of drifting off into the next sim as well.
Christopher Omega
Oxymoron
Join date: 28 Mar 2003
Posts: 1,828
08-13-2004 14:17
Actually, sensors are supposed to be able to track objects that move across simulators, they just dont do it too well.

Klint, the email solution sounds interesting, however, because of the 20 second delay and the rate messages must be transferred for realistic following, it isnt really usable.

When doing something like this, I use object chat. Using object chat to communicate objects positions requires some info on global coordinates, see this page:
www.badgeometry.com/wiki/globalcoordinates

Object chat is much more reliable then sensors for this purpose since simulator boundaries dont disrupt it.

==Chris
Catfart Grayson
Registered User
Join date: 16 May 2004
Posts: 264
08-13-2004 14:29
I suspected I might be forced to use the chat channel. Pity, I was trying to avoid listens.

Do you know under what conditions the sensors fail? Or work.

Hmm, with a bit of thought I might not have to have the listen open all the time.

Thanks chaps. Time to sit and glare at the scripting screen I think.
_____________________
Cat