# Game Charge Used
Grammar — Charges used of charge inCharge
Flags —Native
|Function
Returns the number of charges used for the specified global charge link.
# Arguments
string
— Charge
Returns — fixed
native fixed GameGetChargeUsed(string inCharge);
# 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)));
}