Get Link Position


Get Link Position

So I needed to synchronize my script to be aware of all positions that avatars are sitting at if the script is reset. This could be a nightmare. llGetPos/llGetRootPos only gets the position of the root prim. llGetLocalPos has to be run inside the link itself. llGetPrimitiveParams works - but again it has to run in the prim itself (there is no such thing as llGetLinkPrimitiveParams or llGetLinkPos). There is one thing left. Using llGetLinkKey, I can query information from llGetObjectDetails(avatarId, [OBJECT_POS]). Now the trick is to translate the regional cordinates into local cordinates with llGetPos().

Thistle Island (107, 86) - Apr 15, 2008 (220 days ago) by Dedric Mauriac

Tags for this Snapshot

avatarid avatars aware cordinates information inside island left link llgetlinkkey llgetlinkpos llgetlinkprimitiveparams llgetlocalpos llgetobjectdetails llgetpos llgetprimitiveparams llgetrootpos local needed nightmare objectpos position positions prim query regional reset root run script sitting synchronize thing thistle translate trick works

Leave a Comment

You're not logged in. If you want to post a comment, please log in.