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 Snapshotavatarid 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 CommentYou're not logged in. If you want to post a comment, please log in. |
Snapshots NearbyHere are some other snapshots from this area:
Send in your snapshotsTo send in your own snapshots, simply send them as postcards to pics@slbuzz.com directly from within Second Life. You don't even need to be an SLBuzz member! So give it a shot! If you want to, we can even crosspost them to your flickr account automagically—simply link your SLBuzz account with flickr, and send snapshots to flickr@slbuzz.com. |