# Charge Regen Remaining For Unit

Grammar — Charge regen time remaining of charge inCharge on unit inUnit
FlagsNative | Function

Returns the charge regen time remaining for the specified unit charge link.

# Arguments

  • unit — Unit
  • string<charge> — Charge

Returns — fixed

native fixed UnitGetChargeRegen(
	unit inUnit,
	string inCharge,
);

Category: Unit / Charges And Cooldowns

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:5831

    // Automatic Variable Declarations
    // Implementation
    UnitAddChargeRegen(lp_inUnit, lp_inCharge, (-1.0 * UnitGetChargeRegen(lp_inUnit, lp_inCharge)));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:4969

    // Automatic Variable Declarations
    // Implementation
    UnitAddChargeRegen(lp_inUnit, lp_inCharge, (-1.0 * UnitGetChargeRegen(lp_inUnit, lp_inCharge)));
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/HeroesLib.galaxy:2870

        lv_chargeUsed = UnitGetChargeUsed(lp_unit, lv_chargeLink);
        if ((lv_chargeUsed > 0.0)) {
            lv_time = UnitGetChargeRegen(lp_unit, lv_chargeLink);
        }

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:6854

            lv_chargesUsed = UnitGetChargeUsed(lp_unit, lv_chargeLink);
            if ((lv_chargesUsed >= IntToFixed(lv_chargesMax))) {
                lv_cooldownTime = UnitGetChargeRegen(lp_unit, lv_chargeLink);
            }
            else {