# Add Charge Regen Time For Player (Deprecated)

Grammar — Add inVal seconds to charge regen time for charge inCharge for player inPlayer
FlagsNative | Action | Hidden

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

# Arguments

  • int — Player
  • string — Charge
  • fixed — Value

Returns — void

native void PlayerAddChargeRegen(
	int inPlayer,
	string inCharge,
	fixed inVal,
);

Category: Player / Charges And Cooldowns / Deprecated

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3853

    // Automatic Variable Declarations
    // Implementation
    PlayerAddChargeRegen(lp_inPlayer, lp_inCharge, (-1.0 * PlayerGetChargeRegen(lp_inPlayer, lp_inCharge)));
}

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

    // Automatic Variable Declarations
    // Implementation
    PlayerAddChargeRegen(lp_inPlayer, lp_inCharge, (-1.0 * PlayerGetChargeRegen(lp_inPlayer, lp_inCharge)));
}