# Ability Charge Info For Unit
Grammar — Charge type|Info for ability abilityCommand|Ability on unit unit
Flags —Native
|Function
Returns the specified charge information for the specified ability on the specified unit.
# Arguments
unit
— Unitabilcmd
— Ability Commandint
[ preset::AbilityChargeType ] — Type
Returns — fixed
native fixed UnitAbilityChargeInfo(
unit inUnit,
abilcmd inAbilCmd,
int inType,
);
# Related
Category: Unit / Charges And Cooldowns
- [F] —
void
— Add Charge Remaining Regen Time For Unit Behavior — ( UnitBehaviorAddChargeRegenRemaining ) - [F] —
void
— Add Charge Remaining Regen Time For Unit Ability — ( UnitAbilityAddChargeRegenRemaining ) - [F] —
void
— Add Charge Remaining Regen Time For Unit — ( UnitAddChargeRegenRemaining ) - [F] —
void
— Add Charge Full Regen Time For Unit Behavior — ( UnitBehaviorAddChargeRegenFull ) - [F] —
void
— Add Charge Full Regen Time For Unit Ability — ( UnitAbilityAddChargeRegenFull ) - [F] —
void
— Add Charge Full Regen Time For Unit — ( UnitAddChargeRegenFull ) - [F] —
void
— Add Charge Used For Unit Behavior — ( UnitBehaviorAddChargeUsed ) - [F] —
void
— Add Charge Used For Unit Ability — ( UnitAbilityAddChargeUsed ) - [F] —
void
— Add Charge Used For Unit — ( UnitAddChargeUsed ) - [F] —
void
— Remove Charge Used For Unit Behavior — ( libNtve_gf_UnitBehaviorRemoveChargeUsed ) - [F] —
void
— Remove Charge Used For Unit Ability — ( libNtve_gf_UnitAbilityRemoveChargeUsed ) - [F] —
void
— Remove Charge Used For Unit — ( libNtve_gf_UnitRemoveChargeUsed ) - [F] —
fixed
— Charge Regen Remaining For Unit Behavior — ( UnitBehaviorGetChargeRegen ) - [F] —
fixed
— Charge Regen Remaining For Unit Ability — ( UnitAbilityGetChargeRegen ) - [F] —
fixed
— Charge Regen Remaining For Unit — ( UnitGetChargeRegen ) - [F] —
fixed
— Charge Regen Full For Unit Behavior — ( UnitBehaviorGetChargeRegenFull ) - [F] —
fixed
— Charge Regen Full For Unit Ability — ( UnitAbilityGetChargeRegenFull ) - [F] —
fixed
— Charge Regen Full For Unit — ( UnitGetChargeRegenFull ) - [F] —
fixed
— Charge Used For Unit Behavior — ( UnitBehaviorGetChargeUsed ) - [F] —
fixed
— Charge Used For Unit Ability — ( UnitAbilityGetChargeUsed ) - [F] —
fixed
— Charge Used For Unit — ( UnitGetChargeUsed ) - [F] —
void
— Add Cooldown For Unit Behavior — ( UnitBehaviorAddCooldown ) - [F] —
void
— Add Cooldown For Unit Ability — ( UnitAbilityAddCooldown ) - [F] —
void
— Modify Cooldown For Unit — ( UnitModifyCooldown ) - [F] —
void
— Clear Cooldowns For Unit — ( UnitClearCooldowns ) - [F] —
void
— Remove Cooldown For Unit Behavior — ( libNtve_gf_UnitBehaviorRemoveCooldown ) - [F] —
void
— Remove Cooldown For Unit Ability — ( libNtve_gf_UnitAbilityRemoveCooldown ) - [F] —
void
— Remove Cooldown For Unit — ( libNtve_gf_UnitRemoveCooldown ) - [F] —
fixed
— Cooldown For Unit Behavior — ( UnitBehaviorGetCooldown ) - [F] —
fixed
— Cooldown For Unit Abilty — ( UnitAbilityGetCooldown ) - [F] —
fixed
— Cooldown For Unit — ( UnitGetCooldown ) - [F] —
void
— Activate Ability Cooldowns — ( UnitAbilitySpendExplicit ) - [F] —
void
— Reset Ability Cooldowns — ( UnitAbilityReset ) - [F] —
fixed
— Ability Charge Info For Unit — ( UnitAbilityChargeInfo )
# Examples
# campaigns/swarm.sc2campaign
// L385
UnitAbilityChargeInfo(gv_hyperion, AbilityCommand("SJHyperionFighters", 0), c_unitAbilChargeCountLeft)
// L391
UnitAbilityChargeInfo(gv_hyperion, AbilityCommand("SJHyperionFighters", 0), c_unitAbilChargeCountMax)
// L385
UnitAbilityChargeInfo(gv_hyperion, AbilityCommand("SJHyperionFighters", 0), c_unitAbilChargeCountLeft)
// L391
UnitAbilityChargeInfo(gv_hyperion, AbilityCommand("SJHyperionFighters", 0), c_unitAbilChargeCountMax)
# campaigns/swarmstory.sc2campaign
// L17337
UnitAbilityChargeInfo(libSwaC_gv_zS_PrimaryHatchery, AbilityCommand("ZerglingRespawnTrain", 0), c_unitAbilChargeCountLeft)
// L17343
UnitAbilityChargeInfo(libSwaC_gv_zS_PrimaryHatchery, AbilityCommand("ZerglingRespawnTrain", 0), c_unitAbilChargeCountLeft)
// L17349
UnitAbilityChargeInfo(libSwaC_gv_zS_PrimaryHatchery, AbilityCommand("ZerglingRespawnTrain", 0), c_unitAbilChargeCountLeft)
// L17355
UnitAbilityChargeInfo(libSwaC_gv_zS_PrimaryHatchery, AbilityCommand("ZerglingRespawnTrain", 0), c_unitAbilChargeCountLeft)
# mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod
// L281
UnitAbilityChargeInfo(libBBAY_gv_mMBBCannonballsGhostShip, AbilityCommand("GhostShipBombardChargedPort", 0), c_unitAbilChargeCountLeft)
// L421
UnitAbilityChargeInfo(libBBAY_gv_mMBBCannonballsGhostShip, AbilityCommand("GhostShipBombardChargedPort", 0), c_unitAbilChargeCountLeft)
# mods/starcoop/starcoop.sc2mod
// L9837
UnitAbilityChargeInfo(lp_unit, AbilityCommand(lp_ability, 0), c_unitAbilChargeCountLeft)
// L9840
UnitAbilityChargeInfo(lp_unit, AbilityCommand(lp_ability, 0), c_unitAbilChargeCountLeft)
// L9934
UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locAbathurPlayer], AbilityCommand("SpawnToxicNest", 0), c_unitAbilChargeCountLeft)
// L9938
UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locAbathurPlayer], AbilityCommand("SpawnToxicNest", 0), c_unitAbilChargeCountLeft)
// L9940
UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locAbathurPlayer], AbilityCommand("SpawnToxicNest", 0), c_unitAbilChargeCountLeft)
// L9947
UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locAbathurPlayer], AbilityCommand("SpawnToxicNest", 0), c_unitAbilChargeCountMax)
// L9950
UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locAbathurPlayer], AbilityCommand("SpawnToxicNest", 0), c_unitAbilChargeCountLeft)
// L9950
UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locAbathurPlayer], AbilityCommand("SpawnToxicNest", 0), c_unitAbilChargeCountMax)
// L9954
UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locAbathurPlayer], AbilityCommand("SpawnToxicNest", 0), c_unitAbilChargeCountLeft)
// L9954
UnitAbilityChargeInfo(libCOMI_gv_cM_GlobalCasterUnit[lv_locAbathurPlayer], AbilityCommand("SpawnToxicNest", 0), c_unitAbilChargeCountMax)
# mods/starcoop/starcoop.sc2mod
// L3412
UnitAbilityChargeInfo(libCOMU_gv_cT_CandyBowlUnit, AbilityCommand("MutatorBuyCandy", 0), c_unitAbilChargeCountLeft)
// L3417
UnitAbilityChargeInfo(libCOMU_gv_cT_CandyBowlUnit, AbilityCommand("MutatorBuyCandy", 0), c_unitAbilChargeCountLeft)
// L7625
UnitAbilityChargeInfo(libCOMU_gv_cT_CandyBowlUnit, AbilityCommand("MutatorBuyCandy", 0), c_unitAbilChargeCountLeft)
// L7631
UnitAbilityChargeInfo(libCOMU_gv_cT_CandyBowlUnit, AbilityCommand("MutatorBuyCandy", 0), c_unitAbilChargeCountLeft)
// L10338
UnitAbilityChargeInfo(libCOMU_gv_cT_CandyBowlUnit, AbilityCommand("MutatorBuyCandy", 0), c_unitAbilChargeCountLeft)
# mods/testmods/autopve.stormmod
// L397
UnitAbilityChargeInfo(lib1035AFB3_gv_azmodan, AbilityCommand("AzmodanSummonDemonWarrior", 0), c_unitAbilChargeCountLeft)
// L487
UnitAbilityChargeInfo(lib1035AFB3_gv_nazeebo, AbilityCommand("WitchDoctorPlagueofToads", 0), c_unitAbilChargeCountLeft)