# Set Path Display Source Unit
Grammar — Set pathDisplay source Unit
Flags —Native
|Action
# Arguments
int
<path> — Path Displayunit
— Source
Returns — void
native void PathSetSourceUnit(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/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3441
if ((UnitIsAlive(gv_heroPlayer) == true)) {
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
PathSetVisible(PathLastCreated(), c_pathLocationAll, true);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:3800
if ((UnitIsAlive(gv_heroPlayer) == true)) {
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
PathSetVisible(PathLastCreated(), c_pathLocationAll, true);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:4196
else {
PathSetDestinationPoint(PathLastCreated(), UnitGroupCenterOfGroup(gv_siegeGiantsMercs));
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
}
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1765
if ((UnitIsAlive(gv_heroPlayer) == true)) {
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
PathSetVisible(PathLastCreated(), c_pathLocationAll, true);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:2580
else {
PathSetDestinationPoint(PathLastCreated(), libMapM_gv_mMRavenTributeSpawnPoints[gv_mapMechanicIndex]);
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
}
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3441
if ((UnitIsAlive(gv_heroPlayer) == true)) {
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
PathSetVisible(PathLastCreated(), c_pathLocationAll, true);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:3800
if ((UnitIsAlive(gv_heroPlayer) == true)) {
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
PathSetVisible(PathLastCreated(), c_pathLocationAll, true);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap — MapScript.galaxy:4196
else {
PathSetDestinationPoint(PathLastCreated(), UnitGroupCenterOfGroup(gv_siegeGiantsMercs));
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
}
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1765
if ((UnitIsAlive(gv_heroPlayer) == true)) {
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
PathSetVisible(PathLastCreated(), c_pathLocationAll, true);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:2580
else {
PathSetDestinationPoint(PathLastCreated(), libMapM_gv_mMRavenTributeSpawnPoints[gv_mapMechanicIndex]);
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer);
}
}
mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod — base.stormdata/LibMDoE.galaxy:3312
UnitSetState(lv_hero, c_unitStateStoppable, true);
libNtve_gf_SendActorMessageToUnit(lv_hero, "Signal RestoreModel");
PathSetSourceUnit(libGame_gv_players[lv_player].lv_pathDisplay, lv_hero);
return true;
}
mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod — base.stormdata/LibMLBD.galaxy:1150
PathClearWayPoints(libMLBD_gv_mMBOELaningPathLine);
}
PathSetSourceUnit(libMLBD_gv_mMBOELaningPathLine, lv_flyPathingLineUnit);
PathSetDestinationPoint(libMLBD_gv_mMBOELaningPathLine, libMLBD_gv_mMBOELaningRallyPoint);
if ((DistanceBetweenPoints(UnitGetPosition(libMLBD_gv_mMBOEBossesLaning), libMLBD_gv_mMBOELaningRallyPoint) <= 0.5)) {
mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod — base.stormdata/LibMHtM.galaxy:1752
UnitSetState(lv_heroUnit, c_unitStateTargetable, true);
libNtve_gf_SendActorMessageToUnit(lv_heroUnit, "Signal RestoreModel");
PathSetSourceUnit(libGame_gv_players[lv_owningPlayer].lv_pathDisplay, lv_heroUnit);
libGame_gf_SendEventCheckUnitForAbilityRedirect(lv_heroUnit, lv_heroUnit, true, lv_heroPreTeleportPosition);
return true;
mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod — base.stormdata/LibMHtM.galaxy:1815
UnitSetState(lv_heroUnit, c_unitStateTargetable, true);
libNtve_gf_SendActorMessageToUnit(lv_heroUnit, "Signal RestoreModel");
PathSetSourceUnit(libGame_gv_players[lv_owningPlayer].lv_pathDisplay, lv_heroUnit);
libGame_gf_SendEventCheckUnitForAbilityRedirect(lv_heroUnit, lv_heroUnit, true, lv_heroPreTeleportPosition);
return true;
mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod — base.stormdata/LibMTOD.galaxy:3184
UnitIssueOrder(lv_hero, Order(AbilityCommand("stop", 0)), c_orderQueueReplace);
libNtve_gf_SendActorMessageToUnit(lv_hero, "Signal RestoreModel");
PathSetSourceUnit(libGame_gv_players[lv_player].lv_pathDisplay, lv_hero);
return true;
}