# Charge Count
Grammar — Charge remainingMax count of item inItem
Flags —Native
|Function
Returns the current/max charges for the item.
# Arguments
unit
— Itembool
[ preset::ChargeRemaingMaxOption ] — Remaining/Max
Returns — fixed
native fixed ItemGetChargeCount(
unit inItem,
bool remainingMax,
);
# Related
Category: Item / Basic
- [F] —
void
— Set Charge Remaining — ( ItemSetChargeCount ) - [F] —
fixed
— Charge Count — ( ItemGetChargeCount )
# Examples
# mods/warcoop/warclassicsystem.sc2mod
// L469
ItemGetChargeCount(lv_item, false)
// L1404
ItemGetChargeCount(lv_itItem, false)
// L1405
ItemGetChargeCount(lv_itItem, false)