LSL feature request. The described function does not exist. This article is a feature request.

Tries to renames the inventory object old to new. Useful for vendors wishing to hand out customized versions of objects.

Syntax

void llSetInventoryName( string old, string new );

Forced delay: 0.0 seconds. Energy: 10.0.

Parameters

string old
an item in the inventory of the prim this script is in
string new
desired inventory name

Caveats

Notes

Comments

A few things that came to mind:

P.S. I changed the syntax, using inventory numbering to access items is hazardous, names are less prone to change. -- Strife (talk|contribs) 19:03, 21 March 2009 (UTC)

Possibly should use key, not names source. And it should work as copy/rename/give function. In case of collision - either add number to it's name or return error (should be a flag parameter). --Zidan Foxdale 14:00, 20 June 2010 (UTC)

Key support is a no-go. Multiple instances of an asset can exist in a prim's inventory. All those instances will all share the same key. -- Strife (talk|contribs) 23:52, 20 June 2010 (UTC)

See also

Functions