# Magazine Owner Of Unit

Grammar — Magazine owner that contains ammoUnit|Unit
FlagsNative | Function

# Arguments

  • unit — AmmoUnit

Returns — unit

native unit UnitGetMagazine(unit inUnit);

Category: Unit / Weapons

# Examples

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1659


    lv_actualKiller = lp_killer;
    if ((UnitGetMagazine(lp_killer) != null)) {
        lv_actualKiller = UnitGetMagazine(lp_killer);
    }

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1660

    lv_actualKiller = lp_killer;
    if ((UnitGetMagazine(lp_killer) != null)) {
        lv_actualKiller = UnitGetMagazine(lp_killer);
    }
    else {