- Documentation
- Shared functions
- getPickupAmount
Function
getPickupAmount
Returns the health or armour points given by a type 0 or 1 pickup.
Syntax
int getPickupAmount(pickup thePickup)Arguments
thePickuppickup- The pickup.
Returns
The points, or false.
Example
local pickup = createPickup(0, 0, 3, 1, 50)
outputDebugString("Pancerz: " .. getPickupAmount(pickup))