Scripting Features

  • Search existing ideas before submitting
  • Use support.secondlife.com for customer support issues
  • Keep posts on-topic
Thank you for your ideas!
llGetInventoryLastOwner
(or llGetInventoryAddedBy, or - ... But I'll stick to the semantics of "last owner" for presentation's sake) Scripts can act on object inventory and objects can be configured to accept inventory from any source ( llAllowInventoryDrop ), as well as from agents with permission to modify the owner's objects. Being able to interrogate object inventory entries for their last owner would be good addition to scripting - it would make CHANGED_INVENTORY and CHANGED_ALLOWED_DROP events more able to richly react to the users causing them, as well as allowing for (slightly) better behavior security. Objects have a property OBJECT_LAST_OWNER_ID but this can only be interrogated (in script land) with llGetObjectDetails, while the object exists in the world. It would be nice if this property was: available on all kinds of asset, set on them when they are added to an object's inventory (and only then), accessible via a key llGetInventoryLastOwner(string item) function; the same theme as llGetInventoryCreator . ---- Hauling this up from a later thought, bonus round! integer llGetInventoryAddCount() string llGetInventoryAddName(integer index) integer llGetInventoryAddType(integer index) integer llGetInventoryRemoveCount() string llGetInventoryRemoveName(integer index) integer llGetInventoryRemoveType(integer index) That are populated only within CHANGED_INVENTORY and CHANGED_ALLOWED_DROP events. I have no idea of the cost of holding this stuff in the event queue versus user-implemented prior/new state comparisons - but I think I can reasonably assume it would be cheaper for everyone.
7
Load More