# AISetUnitForceMover

FlagsNative

# Arguments

  • unit — u
  • bool — enable

Returns — void

native void AISetUnitForceMover(unit u, bool enable);

Category: Unclassified

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:307

        if ((gv_vehicleCount < gv_vehicleLimit)) {
            UnitCreate(1, "ColonistTransport", 0, gv_p4_COLONISTS, PointFromId(2906), 180.0);
            AISetUnitForceMover(UnitLastCreated(),true);
            UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(3242)), c_orderQueueReplace);
            UnitIssueOrder(UnitLastCreated(), Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/thanson01.sc2map/MapScript.galaxy:324

                UnitCargoCreate(lv_randomHut, "CivilianFemale", 1);
            }
            AISetUnitForceMover(UnitCargoLastCreated(),true);
            UnitBehaviorAdd(UnitCargoLastCreated(), "Hustle", UnitCargoLastCreated(), 1);
            UnitSetState(UnitCargoLastCreated(), c_unitStateTargetable, true);

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

    gv_odinPing = PingLastCreated();
    Wait(3.0, c_timeReal);
    AISetUnitForceMover(gv_odin, true);
    ObjectiveSetState(gv_objectiveStealTheOdin, c_objectiveStateHidden);
    ObjectiveSetState(gv_objectiveTychusMustSurvive, c_objectiveStateHidden);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:307

        if ((gv_vehicleCount < gv_vehicleLimit)) {
            UnitCreate(1, "ColonistTransport", 0, gv_p4_COLONISTS, PointFromId(2906), 180.0);
            AISetUnitForceMover(UnitLastCreated(),true);
            UnitIssueOrder(UnitLastCreated(), OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(3242)), c_orderQueueReplace);
            UnitIssueOrder(UnitLastCreated(), Order(AbilityCommand("move", 2)), c_orderQueueAddToEnd);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thanson01.sc2mapMapScript.galaxy:324

                UnitCargoCreate(lv_randomHut, "CivilianFemale", 1);
            }
            AISetUnitForceMover(UnitCargoLastCreated(),true);
            UnitBehaviorAdd(UnitCargoLastCreated(), "Hustle", UnitCargoLastCreated(), 1);
            UnitSetState(UnitCargoLastCreated(), c_unitStateTargetable, true);

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

    gv_odinPing = PingLastCreated();
    Wait(3.0, c_timeReal);
    AISetUnitForceMover(gv_odin, true);
    ObjectiveSetState(gv_objectiveStealTheOdin, c_objectiveStateHidden);
    ObjectiveSetState(gv_objectiveTychusMustSurvive, c_objectiveStateHidden);