# Magazine Count Of Unit

Grammar — Number of rounds in abil magazine for u
FlagsNative | Function

Returns the number of rounds in an ability magazine for a unit.

# Arguments

  • unit — Unit
  • string<gamelink::Abil> — Ability

Returns — int

native int UnitMagazineCount(unit inUnit, string inAbil);

Category: Unit / Weapons

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:5116

            }

            if (((UnitMagazineCount(autoF73BCC8E_var, "HHBomberPlatformHangar") == 1) && (UnitHasBehavior2(autoF73BCC8E_var, "HHBomberPlatformAreaBombDisabler") == false) && (UnitHasBehavior2(autoF73BCC8E_var, "HHBomberDockCooldown") == false))) {
                UnitGroupAdd(libCOMI_gv_cM_Horner_BomberPlatforms_Ready[lp_player], autoF73BCC8E_var);
            }