|
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
|
12-30-2005 15:19
key llGetInventoryOwner(string name)
Returns the owner id of inventory item "name", if no such item exists then it will return NULL_KEY.
A simple function that seems like it should already be there but clearly isn't. IMO llGetInventoryCreator() is mostly useless, while llGetInventoryOwner() is vastly more important for things like checking that newly added inventory items to a prim are in fact owned by a valid person (otherwise remove them).
|
|
Argent Stonecutter
Emergency Mustelid
Join date: 20 Sep 2005
Posts: 20,263
|
12-30-2005 17:13
I thought the owner of any object in an inventory was always the same as the owner of the object.
|
|
Jeffrey Gomez
Cubed™
Join date: 11 Jun 2004
Posts: 3,522
|
12-30-2005 18:52
I think Har is referring to an age-old problem plaguing LSL.
Basically, the "suggestion box" problem, where you have a box with llAllowInventoryDrop enabled. There's always the problem of who came by and dropped the thing in the box in the first place, especially if the person isn't the creator.
_____________________
---
|
|
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
|
12-30-2005 19:50
Yup =)
Currently the checks have to involve sensors, timing and other roundabout methods, or force the users to only place items that they created into it. Quite annoying =(
Another possibility is llGetInventoryGroup(), but I'm uncertain if object's in a user or other object's inventory even have a group assigned to them? But llGetInventoryOwner() is the main one because if it's called right away then it can look to see if the user is in the same group or not.
|