angeoco Posted October 14, 2017 Share Posted October 14, 2017 Hi. I want to find out what the owner/wearer of the script's prim (a HUD) is sitting on. I can see that llGetAttachedList shows an avatar's attachments, but can't find anything showing what they are sitting on. Alternatively, I see llAvatarOnSitTarget will tell me who is sitting on an object, but I can't see any way to list nearby objects which I can test. Can anybody suggest a way do do this? Thanks a lot. Link to comment Share on other sites More sharing options...
Ruthven Ravenhurst Posted October 14, 2017 Share Posted October 14, 2017 (edited) When an avatar is sitting on an object, they become a child link of the object. You can use llGetObjectDetails with the flag OBJECT_ROOT to find the root UUID of the object the avatar is sitting on. listdetails = llGetObjectDetails (avataruuid,[OBJECT_ROOT]); key object = llList2Key(details,0); Edited October 14, 2017 by Ruthven Willenov 2 1 Link to comment Share on other sites More sharing options...
angeoco Posted October 14, 2017 Author Share Posted October 14, 2017 Perfect! Thanks very much. Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now