# 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
FlagsNative | Action | Hidden

Adds to the amount of time it takes to regenerate the specified behavior charge link.

# Arguments

  • unit — Unit
  • string [ gamelink::Behavior ] — Behavior
  • string [ charge ] — Charge
  • fixed — Value

Returns — void

native void UnitBehaviorAddChargeRegen(
	unit inUnit,
	string inBehavior,
	string inCharge,
	fixed inVal,
);

Category: Unit / Charges And Cooldowns / Deprecated

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L5819
UnitBehaviorAddChargeRegen(lp_inUnit, lp_inBehavior, lp_inCharge, (-1.0 * UnitBehaviorGetChargeRegen(lp_inUnit, lp_inBehavior, lp_inCharge)))
// L4957
UnitBehaviorAddChargeRegen(lp_inUnit, lp_inBehavior, lp_inCharge, (-1.0 * UnitBehaviorGetChargeRegen(lp_inUnit, lp_inBehavior, lp_inCharge)))