|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
03-01-2009 11:35
I was making something earlier ... a gadget to allow anyone to drop a texture into a prim and have it displayed ... and discovered, rather to my surprise, that the changed event was only happening -- for other people, though it was behaving itself for me -- if (change & CHANGED_ALLOWED_DROP) and not, as I expected, if (change & CHANGED_INVENTORY), though the textures were certainly being placed in the prim. It was certainly that the changed event was not happening rather than something else not working -- I dropped in llOwnerSay("someone has changed my inventory"  ; to check. When I changed it to if (change & CHANGED_ALLOWED_DROP) everything worked fine. Is this expected behavior? The prim's inventory is changing either way, after all.
|
|
Faust Vollmar
llSetAgentSanity(FALSE);
Join date: 3 Feb 2007
Posts: 87
|
03-01-2009 12:10
Yeah, I was always under the impression that CHANGED_INVENTORY only fires when the Owner, or someone with rights from the Owner to modify, changes the inventory, and every other occurrence falls under CHANGED_ALLOWED_DROP.
|
|
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
|
03-01-2009 13:13
|
|
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
|
03-01-2009 14:33
From: Faust Vollmar Yeah, I was always under the impression that CHANGED_INVENTORY only fires when the Owner, or someone with rights from the Owner to modify, changes the inventory, and every other occurrence falls under CHANGED_ALLOWED_DROP. That's the way the wiki explains it but it is wrong. Testing shows that CHANGED_INVENTORY fires for everyone, while CHANGED_ALLOWED_DROP only fires for those that do not have mod rights. /54/7d/308725/1.html#post2333870
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime. From: someone I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
|
|
Innula Zenovka
Registered User
Join date: 20 Jun 2007
Posts: 1,825
|
03-01-2009 16:04
But it seems that the wiki (and I never consulted that table before) was correct.. CHANGED_INVENTORY wasn't firing for anyone but me. I had thought, too, that CHANGED_INVENTORY fired for everyone, which makes more sense (the inventory has changed, after all) and I'm sure it did in the past.
|