# 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
- 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:5831
// Automatic Variable Declarations
// Implementation
UnitAddChargeRegen(lp_inUnit, lp_inCharge, (-1.0 * UnitGetChargeRegen(lp_inUnit, lp_inCharge)));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:4969
// Automatic Variable Declarations
// Implementation
UnitAddChargeRegen(lp_inUnit, lp_inCharge, (-1.0 * UnitGetChargeRegen(lp_inUnit, lp_inCharge)));
}