# Set Charge Remaining
Grammar — Set Charge Remaining of item inItem to inVal
Flags —Native
|Action
Set charge remaining count for the specified item.
# Arguments
unit
— Itemfixed
— Value
Returns — void
native void ItemSetChargeCount(unit inItem, fixed inVal);
# Related
Category: Item / Basic
- [F] —
void
— Set Charge Remaining — ( ItemSetChargeCount ) - [F] —
fixed
— Charge Count — ( ItemGetChargeCount )
# Examples
# mods/warcoop/warclassicsystem.sc2mod
// L474
ItemSetChargeCount(lv_itemCopy, lv_itItemStack)
// L1404
ItemSetChargeCount(lv_itItem, (ItemGetChargeCount(lv_itItem, false)-1))