# Set Path Display Destination Unit

Grammar — Set pathDisplay destination Unit
FlagsNative | Action

# Arguments

  • int<path> — Path Display
  • unit — Destination

Returns — void

native void PathSetDestinationUnit(
	int inPathId,
	unit inUnit,
);

Category: UI / Path Display

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15854

    PathSetDestinationPoint(lv_localPathDisplay, lv_positionOfBeacon);
    PathSetVisible(PathLastCreated(), c_pathLocationWorld, false);
    PathSetDestinationUnit(lv_localPathDisplay, lv_dropshipBeacon);
    PathSetLineTexture(lv_localPathDisplay, c_pathLocationAll, "Assets\\Textures\\storm_waypointline.dds");
    UIDisplayMessage(libGame_gv_teams[libGame_gf_EnemyTeamNumberOfPlayer(lv_medicPlayer)].lv_teamPlayerGroupNoNPCPlayers, c_messageAreaChat, StringExternal("Param/Value/lib_GDHL_14ED487B"));

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

            PathSetVisible(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], c_pathLocationWorld, false);
            PathSetOwnerPlayerId(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], UnitGetOwner(lp_mercLeader));
            PathSetDestinationUnit(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], libGame_gv_teams[libAIAI_gf_MinionAIGetTeamToAttackForMinion(lp_mercLeader)].lv_core);
        }
        return ;

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

    if (autoB97B7772_val == libGame_gv_teamChaosIndex_C) {
        PathSetOwnerPlayerId(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], libCore_gv_cOMPUTER_TeamOrder);
        PathSetDestinationUnit(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core);
        while ((lv_itWaypoint < (libGame_gv_laneData[lv_currentLane].lv_waypointCount - 1))) {
            PathAddWayPoint(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], libGame_gv_laneData[lv_currentLane].lv_waypoints[lv_itWaypoint]);

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

    else if (autoB97B7772_val == libGame_gv_teamOrderIndex_C) {
        PathSetOwnerPlayerId(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], libCore_gv_cOMPUTER_TeamChaos);
        PathSetDestinationUnit(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core);
        while ((lv_itWaypoint > 1)) {
            PathAddWayPoint(libMapM_gv_jungleMiniMapPath[lv_mercLanerGroup], libGame_gv_laneData[lv_currentLane].lv_waypoints[lv_itWaypoint]);

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

            PathSetLineTileLength(libMLBD_gv_mMBOELaningPathLine, c_pathLocationMinimap, 30.0);
            PathSetOwnerPlayerId(libMLBD_gv_mMBOELaningPathLine, UnitGetOwner(lp_unit));
            PathSetDestinationUnit(libMLBD_gv_mMBOELaningPathLine, libGame_gv_teams[libAIAI_gf_MinionAIGetTeamToAttackForMinion(lp_unit)].lv_core);
        }
        return true;

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

    if (auto7E3FC461_val == libGame_gv_teamChaosIndex_C) {
        PathSetOwnerPlayerId(libMLBD_gv_mMBOELaningPathLine, libCore_gv_cOMPUTER_TeamOrder);
        PathSetDestinationUnit(libMLBD_gv_mMBOELaningPathLine, libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core);
        while ((lv_itWaypoint < (libGame_gv_laneData[lv_currentLane].lv_waypointCount - 1))) {
            PathAddWayPoint(libMLBD_gv_mMBOELaningPathLine, libGame_gv_laneData[lv_currentLane].lv_waypoints[lv_itWaypoint]);

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

    else if (auto7E3FC461_val == libGame_gv_teamOrderIndex_C) {
        PathSetOwnerPlayerId(libMLBD_gv_mMBOELaningPathLine, libCore_gv_cOMPUTER_TeamChaos);
        PathSetDestinationUnit(libMLBD_gv_mMBOELaningPathLine, libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core);
        while ((lv_itWaypoint > 1)) {
            PathAddWayPoint(libMLBD_gv_mMBOELaningPathLine, libGame_gv_laneData[lv_currentLane].lv_waypoints[lv_itWaypoint]);

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

            PathSetVisible(libSCHO_gv_mMHO_ArchangelLanerPathLine, c_pathLocationWorld, false);
            PathSetOwnerPlayerId(libSCHO_gv_mMHO_ArchangelLanerPathLine, UnitGetOwner(lp_unit));
            PathSetDestinationUnit(libSCHO_gv_mMHO_ArchangelLanerPathLine, libGame_gv_teams[libAIAI_gf_MinionAIGetTeamToAttackForMinion(lp_unit)].lv_core);
        }
        return true;

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

    if (auto7CA8A2BE_val == libGame_gv_teamChaosIndex_C) {
        PathSetOwnerPlayerId(libSCHO_gv_mMHO_ArchangelLanerPathLine, libCore_gv_cOMPUTER_TeamOrder);
        PathSetDestinationUnit(libSCHO_gv_mMHO_ArchangelLanerPathLine, libGame_gv_teams[libGame_gv_teamChaosIndex_C].lv_core);
        while ((lv_itWaypoint < (libGame_gv_laneData[lv_currentLane].lv_waypointCount - 1))) {
            PathAddWayPoint(libSCHO_gv_mMHO_ArchangelLanerPathLine, libGame_gv_laneData[lv_currentLane].lv_waypoints[lv_itWaypoint]);

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

    else if (auto7CA8A2BE_val == libGame_gv_teamOrderIndex_C) {
        PathSetOwnerPlayerId(libSCHO_gv_mMHO_ArchangelLanerPathLine, libCore_gv_cOMPUTER_TeamChaos);
        PathSetDestinationUnit(libSCHO_gv_mMHO_ArchangelLanerPathLine, libGame_gv_teams[libGame_gv_teamOrderIndex_C].lv_core);
        while ((lv_itWaypoint > 1)) {
            PathAddWayPoint(libSCHO_gv_mMHO_ArchangelLanerPathLine, libGame_gv_laneData[lv_currentLane].lv_waypoints[lv_itWaypoint]);

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

            PathSetVisible(libSCHO_gv_mMHO_ZergPaths[lp_team], c_pathLocationMinimap, true);
            PathSetVisible(libSCHO_gv_mMHO_ZergPaths[lp_team], c_pathLocationWorld, false);
            PathSetDestinationUnit(libSCHO_gv_mMHO_ZergPaths[lp_team], libGame_gv_teams[libGame_gf_EnemyTeam(lp_team)].lv_core);
        }
        return ;

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

    PathSetVisible(libSCHO_gv_mMHO_ZergPaths[lp_team], c_pathLocationMinimap, true);
    PathSetVisible(libSCHO_gv_mMHO_ZergPaths[lp_team], c_pathLocationWorld, false);
    PathSetDestinationUnit(libSCHO_gv_mMHO_ZergPaths[lp_team], libGame_gv_teams[libGame_gf_EnemyTeam(lp_team)].lv_core);
    autoCDD13B39_val = lp_team;
    if (autoCDD13B39_val == libGame_gv_teamOrderIndex_C) {