# Game Charge Used

Grammar — Charges used of charge inCharge
FlagsNative | Function

Returns the number of charges used for the specified global charge link.

# Arguments

  • string — Charge

Returns — fixed

native fixed GameGetChargeUsed(string inCharge);

Category: Game / Charges And Cooldowns

# Examples

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

    // Automatic Variable Declarations
    // Implementation
    GameAddChargeUsed(lp_inCharge, (-1.0 * GameGetChargeUsed(lp_inCharge)));
}

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

    // Automatic Variable Declarations
    // Implementation
    GameAddChargeUsed(lp_inCharge, (-1.0 * GameGetChargeUsed(lp_inCharge)));
}