# Add Charge Regen Time For Player (Deprecated)
Grammar — Add inVal seconds to charge regen time for charge inCharge for player inPlayer
Flags —Native
|Action
|Hidden
Adds to the amount of time it takes to regenerate the specified player charge link.
# Arguments
int
— Playerstring
— Chargefixed
— Value
Returns — void
native void PlayerAddChargeRegen(
int inPlayer,
string inCharge,
fixed inVal,
);
# Related
Category: Player / Charges And Cooldowns / Deprecated
- Add Charge Regen Time For Player (Deprecated) —
void
— PlayerAddChargeRegen - Remove Charge Regen Time For Player (Deprecated) —
void
— libNtve_gf_PlayerRemoveChargeRegen
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3853
// Automatic Variable Declarations
// Implementation
PlayerAddChargeRegen(lp_inPlayer, lp_inCharge, (-1.0 * PlayerGetChargeRegen(lp_inPlayer, lp_inCharge)));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3207
// Automatic Variable Declarations
// Implementation
PlayerAddChargeRegen(lp_inPlayer, lp_inCharge, (-1.0 * PlayerGetChargeRegen(lp_inPlayer, lp_inCharge)));
}