# Charge Regen Remaining For Unit Behavior

Grammar — Charge regen time remaining of charge inCharge on behavior inBehavior on unit inUnit
FlagsNative | Function

Returns the charge regen time remaining for the specified behavior charge link.

# Arguments

  • unit — Unit
  • string<gamelink::Behavior> — Behavior
  • string<charge> — Charge

Returns — fixed

native fixed UnitBehaviorGetChargeRegen(
	unit inUnit,
	string inAbil,
	string inCharge,
);

Category: Unit / Charges And Cooldowns

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