# Acquired Target

Grammar — Acquired Target
FlagsFunction

Returns the acquired target of a unit.

Returns — unit

unit libNtve_gf_AcquiredTarget();

# Supported triggers

Category: Unit / Combat

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thorner03.sc2map/MapScript.galaxy:3855

        }

        if (!((UnitGetType(libNtve_gf_AcquiredTarget()) == "Odin"))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner03.sc2mapMapScript.galaxy:3855

        }

        if (!((UnitGetType(libNtve_gf_AcquiredTarget()) == "Odin"))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:1246

        }

        if (!((UnitGetOwner(libNtve_gf_AcquiredTarget()) == gv_pLAYER_01_USER))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:1250

        }

        if (!(((UnitGetType(libNtve_gf_AcquiredTarget()) == "Roachling") || (UnitGetType(libNtve_gf_AcquiredTarget()) == "RoachCorpser")))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2map/MapScript.galaxy:1250

        }

        if (!(((UnitGetType(libNtve_gf_AcquiredTarget()) == "Roachling") || (UnitGetType(libNtve_gf_AcquiredTarget()) == "RoachCorpser")))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:3389


    lv_targetGroup = gf_HyperionFighterTargetGroup();
    if ((UnitGroupHasUnit(lv_targetGroup, libNtve_gf_AcquiredTarget()) == false)) {
        gf_HyperionFighterLeashing(EventUnit());
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:4302

    libNtve_gf_SendActorMessageToUnit(EventUnit(), "ModelSwap D8Charge");
    libNtve_gf_SendActorMessageToUnit(EventUnit(), "AnimPlay Custom Stand PlayForever,NonLooping 0.000000 0.000000 1.500000 AsDuration");
    lv_target = libNtve_gf_AcquiredTarget();
    if ((UnitGroupHasUnit(gv_hyperionFighterGroup, lv_target) == true)) {
        lv_target = gv_hyperion;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:1246

        }

        if (!((UnitGetOwner(libNtve_gf_AcquiredTarget()) == gv_pLAYER_01_USER))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:1250

        }

        if (!(((UnitGetType(libNtve_gf_AcquiredTarget()) == "Roachling") || (UnitGetType(libNtve_gf_AcquiredTarget()) == "RoachCorpser")))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionroach.sc2mapMapScript.galaxy:1250

        }

        if (!(((UnitGetType(libNtve_gf_AcquiredTarget()) == "Roachling") || (UnitGetType(libNtve_gf_AcquiredTarget()) == "RoachCorpser")))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:3389


    lv_targetGroup = gf_HyperionFighterTargetGroup();
    if ((UnitGroupHasUnit(lv_targetGroup, libNtve_gf_AcquiredTarget()) == false)) {
        gf_HyperionFighterLeashing(EventUnit());
    }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:4302

    libNtve_gf_SendActorMessageToUnit(EventUnit(), "ModelSwap D8Charge");
    libNtve_gf_SendActorMessageToUnit(EventUnit(), "AnimPlay Custom Stand PlayForever,NonLooping 0.000000 0.000000 1.500000 AsDuration");
    lv_target = libNtve_gf_AcquiredTarget();
    if ((UnitGroupHasUnit(gv_hyperionFighterGroup, lv_target) == true)) {
        lv_target = gv_hyperion;

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:872

    }

    UnitObjectGroupCallForHelp(EventUnit(), libNtve_gf_AcquiredTarget());
    return true;
}