# Add Charge Used For Game
Grammar — Add inVal charges used for charge inCharge
Flags —Native
|Action
Consumes the specified number of charges for the specified global charge link.
# Arguments
string
— Chargefixed
— Value
Returns — void
native void GameAddChargeUsed(
string inCharge,
fixed inVal,
);
# Related
Category: Game / Charges And Cooldowns
- Add Charge Remaining Regen Time For Game —
void
— GameAddChargeRegenRemaining - Add Charge Full Regen Time For Game —
void
— GameAddChargeRegenFull - Add Charge Used For Game —
void
— GameAddChargeUsed - Remove Charge Used For Game —
void
— libNtve_gf_GameRemoveChargeUsed - Charge Regen Remaining For Game —
fixed
— GameGetChargeRegen - Charge Regen Full For Game —
fixed
— GameGetChargeRegenFull - Game Charge Used —
fixed
— GameGetChargeUsed - Pause/Unpause All Charges For Game —
void
— GamePauseAllCharges - Add Cooldown For Game —
void
— GameAddCooldown - Remove Cooldown For Game —
void
— libNtve_gf_GameRemoveCooldown - Game Cooldown —
fixed
— GameGetCooldown - Pause/Unpause All Cooldowns For Game —
void
— GamePauseAllCooldowns
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3421
// Automatic Variable Declarations
// Implementation
GameAddChargeUsed(lp_inCharge, (-1.0 * GameGetChargeUsed(lp_inCharge)));
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:2917
// Automatic Variable Declarations
// Implementation
GameAddChargeUsed(lp_inCharge, (-1.0 * GameGetChargeUsed(lp_inCharge)));
}