# Add Charge Regen Time For Unit (Deprecated)
Grammar — Add inVal seconds to charge regen time for charge inCharge on unit inUnit
Flags —Native
|Action
|Hidden
Adds to the amount of time it takes to regenerate the specified unit charge link.
# Arguments
unit
— Unitstring
[ charge ] — Chargefixed
— Value
Returns — void
native void UnitAddChargeRegen(
unit inUnit,
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
// L5831
UnitAddChargeRegen(lp_inUnit, lp_inCharge, (-1.0 * UnitGetChargeRegen(lp_inUnit, lp_inCharge)))
// L4969
UnitAddChargeRegen(lp_inUnit, lp_inCharge, (-1.0 * UnitGetChargeRegen(lp_inUnit, lp_inCharge)))