GetItemWear
The wear rate that applies to an item class, a kind or every item.
Syntax
Section titled “Syntax”GetItemWear([kind])| Parameter | Type | |
|---|---|---|
kind |
string | "weapon", "shield", "armor", "walk" (the road wear: armour’s rate when none was set), an item (name, id or GUID), or nothing for every item (optional) |
Returns
Section titled “Returns”number - percent of the game’s own wear (100 when nothing was set)
Example
Section titled “Example”print("armour wears at " .. GetItemWear("armor") .. "%")See also
Section titled “See also”SetItemWear · the Items and inventory group of the index
