# 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.sc2modbase.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.stormmodbase.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)));
}