# Player Charge Used

Grammar — Charges used of charge inCharge for player inPlayer
FlagsNative | Function

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

# Arguments

  • int — Player
  • string — Charge

Returns — fixed

native fixed PlayerGetChargeUsed(
	int inPlayer,
	string inCharge,
);

Category: Player / Charges And Cooldowns

# Examples

# mods/core.sc2mod

NativeLib.galaxy

// L3859
PlayerGetChargeUsed(lp_inPlayer, lp_inCharge)
// L3213
PlayerGetChargeUsed(lp_inPlayer, lp_inCharge)

# mods/heroesdata.stormmod

UILib.galaxy

// L6867
PlayerGetChargeUsed(lp_player, lv_chargeLink)

# mods/heromods/dva.stormmod

LibHDVA.galaxy

// L199
PlayerGetChargeUsed(lp_player, "Abil/DVaMechSelfDestruct")
// L339
PlayerGetChargeUsed(lp_player, "Abil/DVaMechSelfDestruct")
// L747
PlayerGetChargeUsed(lv_abathurPlayer, "Abil/DVaMechSelfDestruct")
// L1018
PlayerGetChargeUsed(lv_dVaPlayer, "Abil/DVaMechSelfDestruct")
// L1051
PlayerGetChargeUsed(lv_dVaPlayer, "Abil/DVaMechSelfDestruct")
// L1095
PlayerGetChargeUsed(lv_dVaPlayer, "Abil/DVaMechSelfDestruct")
// L1143
PlayerGetChargeUsed(lv_dVaPlayer, "Abil/DVaMechSelfDestruct")
// L1217
PlayerGetChargeUsed(lv_dVaPlayer, "Abil/DVaMechSelfDestruct")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L5657
PlayerGetChargeUsed(lp_player, lp_cooldownName)
// L10260
PlayerGetChargeUsed(lp_stetmannPlayer, lv_abilchargename)
// L10264
PlayerGetChargeUsed(lp_stetmannPlayer, lv_abilchargename)
// L10274
PlayerGetChargeUsed(lp_stetmannPlayer, lv_abilchargename)
// L17059
PlayerGetChargeUsed(lv_player, "Abil/DehakaNydusDestroyerTopBar")
// L20102
PlayerGetChargeUsed(lv_player, "HHStarportTrainWraith")
// L20107
PlayerGetChargeUsed(lv_player, "HHStarportTrainViking")
// L20112
PlayerGetChargeUsed(lv_player, "HHStarportTrainBattlecruiser")
// L20117
PlayerGetChargeUsed(lv_player, "HHStarportTrainRaven")
// L23840
PlayerGetChargeUsed(libCOMI_gf_EventStetmannPowerTowerPlayer(), lv_powertowerabilstring)

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L4566
PlayerGetChargeUsed(lp_player, "Abil/DeployPowerTowerStetmann")
// L9518
PlayerGetChargeUsed(lv_stetmann, "Abil/DeployPowerTowerStetmann")
// L9556
PlayerGetChargeUsed(lv_stetmann, "Abil/DeployPowerTowerStetmann")