# Set Path Display Source Unit

Grammar — Set pathDisplay source Unit
FlagsNative | Action

# Arguments

  • int [ path ] — Path Display
  • unit — Source

Returns — void

native void PathSetSourceUnit(int inPathId, unit inUnit);

Category: UI / Path Display

# Examples

# mods/heroes.stormmod

MapScript.galaxy

// L3441
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L3800
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L4196
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L1765
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L2580
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L3441
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L3800
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L4196
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L1765
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)
// L2580
PathSetSourceUnit(PathLastCreated(), gv_heroPlayer)

# mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod

LibMDoE.galaxy

// L3312
PathSetSourceUnit(libGame_gv_players[lv_player].lv_pathDisplay, lv_hero)

# mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod

LibMLBD.galaxy

// L1150
PathSetSourceUnit(libMLBD_gv_mMBOELaningPathLine, lv_flyPathingLineUnit)

# mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod

LibMHtM.galaxy

// L1752
PathSetSourceUnit(libGame_gv_players[lv_owningPlayer].lv_pathDisplay, lv_heroUnit)
// L1815
PathSetSourceUnit(libGame_gv_players[lv_owningPlayer].lv_pathDisplay, lv_heroUnit)

# mods/heroesmapmods/battlegroundmapmods/towersofdoom.stormmod

LibMTOD.galaxy

// L3184
PathSetSourceUnit(libGame_gv_players[lv_player].lv_pathDisplay, lv_hero)