# Clear Path Display Waypoints

Grammar — Clears all waypoints for path pathDisplay
FlagsNative | Action

# Arguments

  • int<path> — Path Display

Returns — void

native void PathClearWayPoints(int inPathId);

Category: UI / Path Display

# Examples

mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmodbase.stormdata/LibMHPP.galaxy:282

    // Implementation
    if ((libMHPP_gv_payloadPath.lv_pathDisplay != 0)) {
        PathClearWayPoints(libMHPP_gv_payloadPath.lv_pathDisplay);
        PathDestroy(libMHPP_gv_payloadPath.lv_pathDisplay);
        libMHPP_gv_payloadPath.lv_pathDisplay = 0;

mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmodbase.stormdata/LibMHPP.galaxy:323

    // Implementation
    if ((libMHPP_gv_payloadPath.lv_pathDisplay != 0)) {
        PathClearWayPoints(libMHPP_gv_payloadPath.lv_pathDisplay);
        PathDestroy(libMHPP_gv_payloadPath.lv_pathDisplay);
        libMHPP_gv_payloadPath.lv_pathDisplay = 0;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:2118

    else {
        if ((libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup] != 0)) {
            PathClearWayPoints(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup]);
            PathDestroy(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup]);
        }

mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmodbase.stormdata/LibMLBD.galaxy:1148

            }
            else {
                PathClearWayPoints(libMLBD_gv_mMBOELaningPathLine);
            }
            PathSetSourceUnit(libMLBD_gv_mMBOELaningPathLine, lv_flyPathingLineUnit);

mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmodbase.stormdata/LibSCHO.galaxy:3104

        libSCHO_gv_mMHO_ZergPathIndexMax[lp_team] = 1;
        if ((libSCHO_gv_mMHO_ZergPaths[lp_team] != 0)) {
            PathClearWayPoints(libSCHO_gv_mMHO_ZergPaths[lp_team]);
            PathDestroy(libSCHO_gv_mMHO_ZergPaths[lp_team]);
        }

mods/heromods/thefirelords.stormmodbase.stormdata/LibHMaj.galaxy:216

    // Implementation
    if ((libHMaj_gv_lavaWaveMiniMapPathId[lp_player][lp_lavaWaveIndex] != 0)) {
        PathClearWayPoints(libHMaj_gv_lavaWaveMiniMapPathId[lp_player][lp_lavaWaveIndex]);
        PathDestroy(libHMaj_gv_lavaWaveMiniMapPathId[lp_player][lp_lavaWaveIndex]);
        libHMaj_gv_lavaWaveMiniMapPathId[lp_player][lp_lavaWaveIndex] = 0;

mods/novastoryassets.sc2modbase3.sc2maps/maps/campaign/nova/nova09.sc2map/MapScript.galaxy:804

            if ((DistanceBetweenPoints(UnitGetPosition(lp_pathDisplayUnit), PointFromName((lp_pathDisplayID + "-" + IntToString((lv_i + 1))))) < DistanceBetweenPoints(PointFromName((lp_pathDisplayID + "-" + IntToString(lv_i))), PointFromName((lp_pathDisplayID + "-" + IntToString((lv_i + 1))))))) {
                lv_i += 1;
                PathClearWayPoints(gv_hyperionMinimapPathDisplay);
                autoD85986E0_ae = (lp_startingIndex + (lv_waypointCount - 1));
                autoD85986E0_var = lv_i;

mods/novastoryassets.sc2mod/base3.sc2maps/maps/campaign/nova/nova09.sc2mapMapScript.galaxy:804

            if ((DistanceBetweenPoints(UnitGetPosition(lp_pathDisplayUnit), PointFromName((lp_pathDisplayID + "-" + IntToString((lv_i + 1))))) < DistanceBetweenPoints(PointFromName((lp_pathDisplayID + "-" + IntToString(lv_i))), PointFromName((lp_pathDisplayID + "-" + IntToString((lv_i + 1))))))) {
                lv_i += 1;
                PathClearWayPoints(gv_hyperionMinimapPathDisplay);
                autoD85986E0_ae = (lp_startingIndex + (lv_waypointCount - 1));
                autoD85986E0_var = lv_i;