# 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
- Remove Charge Regen Time For Unit Behavior (Deprecated) —
void— libNtve_gf_UnitBehaviorRemoveChargeRegen - Remove Charge Regen Time For Unit Ability (Deprecated) —
void— libNtve_gf_UnitAbilityRemoveChargeRegen - Remove Charge Regen Time For Unit (Deprecated) —
void— libNtve_gf_UnitRemoveChargeRegen - Add Charge Regen Time For Unit Behavior (Deprecated) —
void— UnitBehaviorAddChargeRegen - Add Charge Regen Time For Unit Ability (Deprecated) —
void— UnitAbilityAddChargeRegen - Add Charge Regen Time For Unit (Deprecated) —
void— UnitAddChargeRegen - Activate Ability Cooldowns (Deprecated) —
void— UnitAbilitySpend - Add Cooldown For Unit (Deprecated) —
void— UnitAddCooldown
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:5825
// Automatic Variable Declarations
// Implementation
UnitAbilityAddChargeRegen(lp_inUnit, lp_inAbil, lp_inCharge, (-1.0 * UnitAbilityGetChargeRegen(lp_inUnit, lp_inAbil, lp_inCharge)));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:4963
// Automatic Variable Declarations
// Implementation
UnitAbilityAddChargeRegen(lp_inUnit, lp_inAbil, lp_inCharge, (-1.0 * UnitAbilityGetChargeRegen(lp_inUnit, lp_inAbil, lp_inCharge)));
}