[Opensim-users] llGiveInventoryList to an object raisesexception
Jeff Kelley
opensim at pescadoo.net
Mon Apr 15 18:09:17 UTC 2013
At 9:34 PM -0400 4/14/13, Storm Singer wrote:
>That's what I thought. I think I ran into this problem in the past,
>and I wound up
>using completely different code to solve it. Probably the
>llgiveinventory command.
>It all rings bells... Unfortunately I'm not a terribly organized coder...
A small code snippet can emulate llGiveInventoryList with a loop on
llGiveInventory, with no delay penalty (2.0s for an avatar target,
0.0 for an object).
We just have to flag llGiveInventoryList to object as non implemented
and use this work-around:
myGiveInventoryList (key target, string folder, list inventory )
{
integer howMany = llGetListLength (inventory);
integer i; for (i=0; i<howMany; i++)
llGiveInventory (target, llList2String (inventory, i) );
}
-- Jeff
More information about the Opensim-users
mailing list