# Add Charge Regen Time For Unit Ability (Deprecated)

Grammar — Add inVal seconds to charge regen time for charge inCharge on ability inAbil on unit inUnit
FlagsNative | Action | Hidden

Adds to the amount of time it takes to regenerate the specified ability charge link.

# Arguments

  • unit — Unit
  • string [ gamelink::Abil ] — Ability
  • string [ charge ] — Charge
  • fixed — Value

Returns — void

native void UnitAbilityAddChargeRegen(
	unit inUnit,
	string inAbil,
	string inCharge,
	fixed inVal,
);

Category: Unit / Charges And Cooldowns / Deprecated

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L5825
UnitAbilityAddChargeRegen(lp_inUnit, lp_inAbil, lp_inCharge, (-1.0 * UnitAbilityGetChargeRegen(lp_inUnit, lp_inAbil, lp_inCharge)))
// L4963
UnitAbilityAddChargeRegen(lp_inUnit, lp_inAbil, lp_inCharge, (-1.0 * UnitAbilityGetChargeRegen(lp_inUnit, lp_inAbil, lp_inCharge)))