# Add Charge Used For Game

Grammar — Add inVal charges used for charge inCharge
FlagsNative | Action

Consumes the specified number of charges for the specified global charge link.

# Arguments

  • string — Charge
  • fixed — Value

Returns — void

native void GameAddChargeUsed(
	string inCharge,
	fixed inVal,
);

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)));
}