GetPickupHealth
The condition of a pickup’s item.
Syntax
Section titled “Syntax”GetPickupHealth(id)| Parameter | Type | |
|---|---|---|
id |
number | the pickup |
Returns
Section titled “Returns”number - 1..100; nil for an entity that is no item pickup
Example
Section titled “Example”function OnPlayerDrop(pid, id) Log(GetPlayerName(pid) .. " dropped an item at " .. GetPickupHealth(id) .. "%")endSee also
Section titled “See also”SetPickupHealth · OnPlayerDrop · GetPickupQuality · the Items and inventory group of the index
