# Set Path Display Destination Unit
Grammar — Set pathDisplay destination Unit
Flags —Native
|Action
# Arguments
int
<path> — Path Displayunit
— Destination
Returns — void
native void PathSetDestinationUnit(
int inPathId,
unit inUnit,
);
# Related
Category: UI / Path Display
- Create Path Display For Unit —
int
<path> — PathCreateForUnit - Create Path Display For Unit Type —
int
<path> — PathCreateForUnitType - Last Path Display Created —
int
<path> — PathLastCreated - Destroy Path Display —
void
— PathDestroy - Destroy Path Displays For Players —
void
— PathDestroyAll - Set Path Display Destination Point —
void
— PathSetDestinationPoint - Get Path Display Destination Point —
point
— PathGetDestinationPoint - Set Path Display Destination Unit —
void
— PathSetDestinationUnit - Get Path Display Destination Unit —
unit
— PathGetDestinationUnit - Set Path Display Source Point —
void
— PathSetSourcePoint - Get Path Display Source Point —
point
— PathGetSourcePoint - Set Path Display Source Unit —
void
— PathSetSourceUnit - Get Path Display Source Unit —
unit
— PathGetSourceUnit - Get Path Display Unit —
unit
— PathGetUnit - Get Path Display Unit Type —
string
<gamelink::Unit> — PathGetUnitType - Set Path Display Line Texture —
void
— PathSetLineTexture - Get Path Display Line Texture —
string
<filepath> — PathGetLineTexture - Set Path Display Line Tile Length —
void
— PathSetLineTileLength - Get Path Display Line Tile Length —
fixed
— PathGetLineTileLength - Set Path Display Line Width —
void
— PathSetLineWidth - Get Path Display Line Width —
fixed
— PathGetLineWidth - Set Path Display Step Midpoint —
void
— PathSetStepMidpoint - Get Path Display Step Midpoint —
fixed
— PathGetStepMidpoint - Set Path Display Step Model —
void
— PathSetStepModel - Get Path Display Step Model —
string
<filepath> — PathGetStepModel - Set Path Display Step Model Scale —
void
— PathSetStepModelScale - Get Path Display Step Model Scale —
fixed
— PathGetStepModelScale - Set Path Display Color —
void
— PathSetColor - Get Path Display Color —
color
— PathGetColor - Set Path Display Visibility —
void
— PathSetVisible - Get Path Display Visibility —
bool
<preset::VisibleHiddenOption> — PathGetVisible - Set Path Display Abil Class Filter —
void
— PathSetAbilClassFilter - Clear Path Display Waypoints —
void
— PathClearWayPoints - Add Path Display Waypoint —
void
— PathAddWayPoint - Set Path Display Minimum Linear Distance —
void
— PathSetMinimumLinearDistance - Get Path Display Minimum Linear Distance —
fixed
— PathGetMinimumLinearDistance - Set Path Display Minimum Travel Distance —
void
— PathSetMinimumTravelDistance - Get Path Display Minimum Travel Distance —
fixed
— PathGetMinimumTravelDistance - Set Path Display Minimum Turn Count —
void
— PathSetMinimumStepCount - Get Path Display Minimum Turn Count —
int
— PathGetMinimumStepCount
# Examples
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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) {