# Add Charge Regen Time For Unit (Deprecated)

Grammar — Add inVal seconds to charge regen time for charge inCharge on unit inUnit
FlagsNative | Action | Hidden

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

# Arguments

  • unit — Unit
  • string [ charge ] — Charge
  • fixed — Value

Returns — void

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

Category: Unit / Charges And Cooldowns / Deprecated

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// 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)))