# Unit Uses Mover

Grammaru uses mover mover
FlagsNative | Function

Returns true if a unit uses the specified mover.

# Arguments

  • unit — Unit
  • string<gamelink::Mover> — Mover

Returns — bool

native bool UnitMoverExists(unit inUnit, string inMover);

Category: Unit / Properties

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttosh01.sc2map/MapScript.galaxy:1001

        }

        if (!((UnitMoverExists(EventUnitDamageSourceUnit(), "Fly") == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:656

        auto0FCC7E16_var = UnitGroupUnitFromEnd(auto0FCC7E16_g, auto0FCC7E16_u);
        if (auto0FCC7E16_var == null) { break; }
        if ((UnitMoverExists(auto0FCC7E16_var, "Fly") == true)) {
            UnitIssueOrder(auto0FCC7E16_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(lp_gankRegion)), c_orderQueueReplace);
            UnitIssueOrder(auto0FCC7E16_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(gf_GetClosestRegionToRetreat(UnitGetPosition(auto0FCC7E16_var)))), c_orderQueueAddToEnd);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5181

        }

        if (!((UnitMoverExists(EventUnit(), "Fly") == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5227

        }

        if (!((UnitMoverExists(EventUnit(), "Fly") == false))) {
            return false;
        }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5273

        }

        if (!((UnitMoverExists(EventUnit(), "Fly") == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh01.sc2mapMapScript.galaxy:1001

        }

        if (!((UnitMoverExists(EventUnitDamageSourceUnit(), "Fly") == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:656

        auto0FCC7E16_var = UnitGroupUnitFromEnd(auto0FCC7E16_g, auto0FCC7E16_u);
        if (auto0FCC7E16_var == null) { break; }
        if ((UnitMoverExists(auto0FCC7E16_var, "Fly") == true)) {
            UnitIssueOrder(auto0FCC7E16_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(lp_gankRegion)), c_orderQueueReplace);
            UnitIssueOrder(auto0FCC7E16_var, OrderTargetingPoint(AbilityCommand("attack", 0), RegionGetCenter(gf_GetClosestRegionToRetreat(UnitGetPosition(auto0FCC7E16_var)))), c_orderQueueAddToEnd);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5181

        }

        if (!((UnitMoverExists(EventUnit(), "Fly") == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5227

        }

        if (!((UnitMoverExists(EventUnit(), "Fly") == false))) {
            return false;
        }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5273

        }

        if (!((UnitMoverExists(EventUnit(), "Fly") == false))) {
            return false;
        }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zchar03.sc2map/MapScript.galaxy:2974

        }

        if (!((UnitMoverExists(EventUnit(), "Fly") == false))) {
            return false;
        }

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar03.sc2mapMapScript.galaxy:2974

        }

        if (!((UnitMoverExists(EventUnit(), "Fly") == false))) {
            return false;
        }

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

    }

    if (((UnitOrderHasAbil(lp_aIUnit, "MutatorAmonKerriganApocalypse") == true) || (UnitOrderHasAbil(lp_aIUnit, "MutatorAmonKerriganPrimalSlash") == true) || (UnitHasBehavior2(lp_aIUnit, "MutatorAmonKerriganPsiStrikeWalkSpeed") == true) || (UnitOrderHasAbil(lp_aIUnit, "MutatorAmonKerriganPsiStrikeWalk") == true) || (UnitMoverExists(lp_aIUnit, "PrimalSlashUpgradedMover") == true))) {
        return ;
    }