# 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
Flags —Native
|Action
|Hidden
Adds to the amount of time it takes to regenerate the specified ability charge link.
# Arguments
unit
— Unitstring
[ gamelink::Abil ] — Abilitystring
[ charge ] — Chargefixed
— Value
Returns — void
native void UnitAbilityAddChargeRegen(
unit inUnit,
string inAbil,
string inCharge,
fixed inVal,
);
# Related
Category: Unit / Charges And Cooldowns / Deprecated
- [F] —
void
— Remove Charge Regen Time For Unit Behavior (Deprecated) — ( libNtve_gf_UnitBehaviorRemoveChargeRegen ) - [F] —
void
— Remove Charge Regen Time For Unit Ability (Deprecated) — ( libNtve_gf_UnitAbilityRemoveChargeRegen ) - [F] —
void
— Remove Charge Regen Time For Unit (Deprecated) — ( libNtve_gf_UnitRemoveChargeRegen ) - [F] —
void
— Add Charge Regen Time For Unit Behavior (Deprecated) — ( UnitBehaviorAddChargeRegen ) - [F] —
void
— Add Charge Regen Time For Unit Ability (Deprecated) — ( UnitAbilityAddChargeRegen ) - [F] —
void
— Add Charge Regen Time For Unit (Deprecated) — ( UnitAddChargeRegen ) - [F] —
void
— Activate Ability Cooldowns (Deprecated) — ( UnitAbilitySpend ) - [F] —
void
— Add Cooldown For Unit (Deprecated) — ( UnitAddCooldown )
# Examples
# mods/core.sc2mod
// 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)))