# Reset Movement Speed

Grammar — Reset max speed value for u
FlagsNative | Action

Resets the maximum speed value for a unit.

# Arguments

  • unit — Unit

Returns — void

native void UnitResetSpeed(unit inUnit);

Category: Unit / Properties

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition02.sc2map/MapScript.galaxy:693

        if (auto88629E3B_var == null) { break; }
        UnitIssueOrder(auto88629E3B_var, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
        UnitResetSpeed(auto88629E3B_var);
        AISetUnitScriptControlled(auto88629E3B_var, false);
        AIAttackWaveUseUnit(gv_pLAYER_02_SHUTTLE_BLUE, auto88629E3B_var);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition02.sc2mapMapScript.galaxy:693

        if (auto88629E3B_var == null) { break; }
        UnitIssueOrder(auto88629E3B_var, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
        UnitResetSpeed(auto88629E3B_var);
        AISetUnitScriptControlled(auto88629E3B_var, false);
        AIAttackWaveUseUnit(gv_pLAYER_02_SHUTTLE_BLUE, auto88629E3B_var);

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

    }

    UnitResetSpeed(lp_speedUnit);
}