# 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.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:5831

    // Automatic Variable Declarations
    // Implementation
    UnitAddChargeRegen(lp_inUnit, lp_inCharge, (-1.0 * UnitGetChargeRegen(lp_inUnit, lp_inCharge)));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:4969

    // Automatic Variable Declarations
    // Implementation
    UnitAddChargeRegen(lp_inUnit, lp_inCharge, (-1.0 * UnitGetChargeRegen(lp_inUnit, lp_inCharge)));
}