Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

finding distance of another avatar

Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
06-02-2005 10:18
I am trying to have a script tell me the distance to another avatar. I have the scan working buit llGetPos doesn't seem to allow me to feed it the avatar's key.

I know this can be done just not sure how as of yet.


Any help would be appreciated.
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
06-02-2005 10:30
You want to use a sensor and use llDetectedPos to get the resulting position, get your object's position with llGetPos, then use llVecDist to determine the distance between them.
_____________________
Need scripting help? Visit the LSL Wiki!
Omega Point - Catherine Omega's Blog
Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
never mind...
06-02-2005 10:31
I am an idiot! if you see me in world, shoot me.
Perwin Rambler
Registered User
Join date: 24 Mar 2005
Posts: 152
thank you Catherine
06-02-2005 10:35
I figured out the llDetectedPos. (After I remember already useing such a thing in a prior script)
and the llVectDist was helpful (New command for me)