Jump to content

How to find out what an avatar is sitting on?


angeoco
 Share

You are about to reply to a thread that has been inactive for 2400 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

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

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 by Ruthven Willenov
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 2400 days.

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
 Share

×
×
  • Create New...