Jump to content
JimSqu Sunbelter

Finding item in another AV's inventory

Recommended Posts

I need to be able to find out if an AV already has an item in their inventory or alternatively is attached to their body. 

My application is that they need to have a ticket (item/prim) either in their inventory or attached to their body before the item they touch gives out a prize or allows them through. Any examples would be greatly appreciated. 

I've played with IIGetInventoryType and IIGetInventoryName but they only see to act on the items contained with the prim being touched.


Share this post

Link to post
Share on other sites

I don't think llSensor can see worn attachments (the wiki says not) but llGetAttachedList can, so long as they're not HUDs.     That returns the UUIDs of whatever the av has attached, so you will need to loop down the list, checking llKey2Name and seeing if anything matches your ticket's name.


Edited by Innula Zenovka
  • Like 1
  • Thanks 1

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...