Gleeb Gupte
Maker of big square stuff
Join date: 13 May 2005
Posts: 22
|
07-23-2005 18:03
How can you find out when the newest inventory is? I presume I could then find it's UUID?
|
Catherine Omega
Geometry Ninja
Join date: 10 Jan 2003
Posts: 2,053
|
07-23-2005 18:26
You want a global list containing all the names of the current inventory items. (use a for loop to build it) Next, you want the changed() event, checking the CHANGED_INVENTORY constant, with a for loop to check what was added. If nothing was, then something was removed, so you can remove that entry from the global inventory name list. If something WAS added, add it to the list, then do what you need to do with it. Note that you can't get its key with llGetInventoryKey if it's no-copy, so you'll need a provision to deal with that as well.
|