Add optional "integer link" parameter to llGetInventory*() functions.
tracked
B
Big Blep
Add the possibility to explore the inventory of other prims in the same linkset by adding an optional "integer link" parameter to the llGetInventory*() functions.
Example code:
integer numPrims = llGetNumberOfPrims();
integer primIdx = 0;
for( ; primIdx <= numPrims; ++primIdx ) {
integer invNum = llGetInventoryNumber( INVENTORY_SCRIPT, primIdx );
integer invIdx = 0;
for( ; invIdx <= invNum; ++invIdx ) {
if( llGetInventoryName( INVENTORY_SCRIPT, invIdx, primIdx ) == "MyScript" ) {
llOwnerSay( "The script I looked for was found in prim '" + llGetLinkName( primIdx ) + "'." );
}
}
}
Log In
Signal Linden
marked this post as
tracked
Bleuhazenfurfle Resident
Looooong overdue feature, that
many
people want!!!It'd have to be llGetLinkInventoryXxx, though, optional anythings or even just changing a commands signature seem to be totally off the cards (they apparently can't even add a return value, which is just soo sads).
Bugs Larnia
Bleuhazenfurfle Resident: Indeed. Something like llGetLinkInventory(integer linkNum, integer inventoryType)
B
Big Blep
Bleuhazenfurfle Resident I think a separate function for this, llGetLinkInventory*(), would actually be desirable, because it matches the behavior of other functions!