Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

get pos

Alberto McGettigan
Registered User
Join date: 14 Jun 2005
Posts: 57
08-27-2005 13:15
can llGetPos get the pos of the avatar touching the object or just the location of the oject the script is in and if so how do you get the location of an avatar?
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
08-27-2005 13:24
There are several methods to get the location of an avatar. To get the location of an avatar that is touching the object:

CODE
   touch_start(integer n)
{
vector location = llDetectedPos(0);
llSay(0, "Your location: " + (string)location);
}


llDetectedPos() also works with sensors and collisions. :)
_____________________
Alberto McGettigan
Registered User
Join date: 14 Jun 2005
Posts: 57
08-27-2005 13:28
Thanks Jillian :)