I want to create something with this lua command, but item only uses a unique ID of dropped items. If the dropped item is ID 2 and player pick the weapon then
1
item(2,"type")
simply return false
But when the item is dropped
1
item(2,"type")
returns the type ID
So my question is:
Is a item only affect to dropped items?
If so, then this code
@ Infinite Rain: He's right to be in doubt, because as the help page states, item(0,"table") only returns IDs of dropped items.
I don't use this function all too often, but it does look like the player option is useless. The only item ID that belongs to a player seems to be 0, which is always the knife (tried testing it locally) - so when I do item(0,"player") I get 1, and when I do item(0,"type") I get 50. In all other cases the player option returns 0 for dropped.