OsGetInventoryDesc

From OpenSimulator

(Difference between revisions)
Jump to: navigation, search
Line 16: Line 16:
 
|description=Returns a string that is the description of inventory item with id "itemName_or_itemId" if that parameter is a valid key or with that name if not.
 
|description=Returns a string that is the description of inventory item with id "itemName_or_itemId" if that parameter is a valid key or with that name if not.
 
|additional_info=This function was added in 0.7.4-post-fixes
 
|additional_info=This function was added in 0.7.4-post-fixes
Implemented March, 17 2012 in GIT# 4a57112f19c0e4eb3545fdc0cbbbd68ce46c6eaa
+
Implemented March, 17 2012, id argument added February, 22 2019
id argument added February, 22 2019
+
 
}}
 
}}

Revision as of 15:32, 22 February 2019

string osGetInventoryDesc(string itemName_or_itemId)
Returns a string that is the description of inventory item with id "itemName_or_itemId" if that parameter is a valid key or with that name if not.
Threat Level This function does not do a threat level check
Permissions Use of this function is always allowed by default
Extra Delay 0 seconds
Example(s)
default
{
    state_entry()
    {
        string name = llGetInventoryName(INVENTORY_LANDMARK, 0);
        string decription = osGetInventoryDesc(name);
    }
}
Notes
This function was added in 0.7.4-post-fixes

Implemented March, 17 2012, id argument added February, 22 2019


Personal tools
General
About This Wiki