Skip to content

count_item

Prototypeint count_item(string script[9])

count_item() counts the number of items with the script script in the weapon/item inventory. Interestingly, the specified script need not actually exist: it only has to be the same as the corresponding add_item() command's script-name argument.

For more information, see Items