# Add Charge Regen Time For Unit Behavior (Deprecated)
Grammar — Add inVal seconds to charge regen time for charge inCharge on behavior inBehavior on unit inUnit
Flags —Native
|Action
|Hidden
Adds to the amount of time it takes to regenerate the specified behavior charge link.
# Arguments
unit
— Unitstring
<gamelink::Behavior> — Behaviorstring
<charge> — Chargefixed
— Value
Returns — void
native void UnitBehaviorAddChargeRegen(
unit inUnit,
string inBehavior,
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:5819
// Automatic Variable Declarations
// Implementation
UnitBehaviorAddChargeRegen(lp_inUnit, lp_inBehavior, lp_inCharge, (-1.0 * UnitBehaviorGetChargeRegen(lp_inUnit, lp_inBehavior, lp_inCharge)));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:4957
// Automatic Variable Declarations
// Implementation
UnitBehaviorAddChargeRegen(lp_inUnit, lp_inBehavior, lp_inCharge, (-1.0 * UnitBehaviorGetChargeRegen(lp_inUnit, lp_inBehavior, lp_inCharge)));
}