# Create Path Display For Unit

Grammar — Create Path Display For unit For players
FlagsNative | Action

# Arguments

  • playergroup — Players
  • unit — Unit

Returns — int [ path ]

native int PathCreateForUnit(
	playergroup inPlayerGroup,
	unit inUnit,
);

Category: UI / Path Display

# Examples

# mods/heroes.stormmod

MapScript.galaxy

// L2344
PathCreateForUnit(PlayerGroupAll(), gv_heroPlayer)
// L3418
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L3786
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L4173
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L1751
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L2557
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L2344
PathCreateForUnit(PlayerGroupAll(), gv_heroPlayer)
// L3418
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L3786
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L4173
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L1751
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)
// L2557
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[gv_pLAYER_01_USER], gv_heroPlayer)

# mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod

LibPEB1.galaxy

// L3867
PathCreateForUnit(PlayerGroupAll(), lv_mercMedivac)

# mods/heroesbrawlmods/brawlmapmods/hanamurapayloadpush.stormmod

LibMHPP.galaxy

// L293
PathCreateForUnit(PlayerGroupAll(), lp_payloadUnit)
// L334
PathCreateForUnit(PlayerGroupAll(), lp_payloadUnit)

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L13034
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lv_lVPlayer], UnitLastCreated())
// L13048
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lv_lVPlayer], UnitLastCreated())
// L13064
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lv_lVPlayer], UnitLastCreated())
// L14127
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lv_lVPlayer], EventUnit())
// L14139
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lv_lVPlayer], EventUnit())
// L14151
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lv_lVPlayer], EventUnit())
// L15850
PathCreateForUnit(libGame_gv_teams[lv_medicPlayerTeam].lv_teamPlayerGroupNoNPCPlayers, lv_dropship)
// L21244
PathCreateForUnit(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, false), lv_sgtHammerCasterUnit)
// L21251
PathCreateForUnit(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_sgtHammerCasterUnit)
// L21261
PathCreateForUnit(libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), lv_sgtHammerCasterUnit)

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L2108
PathCreateForUnit(PlayerGroupAll(), lp_mercLeader)
// L2126
PathCreateForUnit(PlayerGroupAll(), lp_mercLeader)

# mods/heroesdata.stormmod

UILib.galaxy

// L1222
PathCreateForUnit(libCore_gv_playerGroupFromPlayer[lp_player], lp_unit)
// L8004
PathCreateForUnit(lv_pingPlayerGroup, UnitGroupUnit(UnitGroupSelected(lp_player), 1))
// L8008
PathCreateForUnit(lv_pingPlayerGroup, libGame_gv_players[lp_player].lv_activeVehicle)
// L8011
PathCreateForUnit(lv_pingPlayerGroup, libGame_gv_players[lp_player].lv_heroUnit)

# mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod

LibMLBD.galaxy

// L1127
PathCreateForUnit(PlayerGroupAll(), lv_flyPathingLineUnit)
// L1213
PathCreateForUnit(PlayerGroupAll(), lp_unit)
// L1228
PathCreateForUnit(PlayerGroupAll(), lp_unit)

# mods/heroesmapmods/battlegroundmapmods/braxisholdout.stormmod

LibSCHO.galaxy

// L2374
PathCreateForUnit(PlayerGroupAll(), lp_unit)
// L2384
PathCreateForUnit(PlayerGroupAll(), lp_unit)
// L3091
PathCreateForUnit(PlayerGroupAll(), libSCHO_gv_mMHO_ZergIconUnit[lp_team].lv_iconUnit)
// L3111
PathCreateForUnit(PlayerGroupAll(), libSCHO_gv_mMHO_ZergIconUnit[lp_team].lv_iconUnit)

# mods/heroesmapmods/battlegroundmapmods/hanamura.stormmod

LibNPLD.galaxy

// L406
PathCreateForUnit(PlayerGroupAll(), libNPLD_gv_neutralPayload.lv_unit)
// L408
PathCreateForUnit(PlayerGroupAll(), libNPLD_gv_neutralPayload.lv_unit)
// L671
PathCreateForUnit(PlayerGroupAll(), libNPLD_gv_neutralPayload.lv_warningUnit)
// L673
PathCreateForUnit(PlayerGroupAll(), libNPLD_gv_neutralPayload.lv_warningUnit)

# mods/heromods/thefirelords.stormmod

LibHMaj.galaxy

// L200
PathCreateForUnit(PlayerGroupAll(), lp_lavaWaveUnit)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L774
PathCreateForUnit(PlayerGroupAll(), lp_pathDisplayUnit)
// L1929
PathCreateForUnit(PlayerGroupAll(), gv_xanthos)
// L3506
PathCreateForUnit(PlayerGroupAll(), gv_xanthos)
// L774
PathCreateForUnit(PlayerGroupAll(), lp_pathDisplayUnit)
// L1929
PathCreateForUnit(PlayerGroupAll(), gv_xanthos)
// L3506
PathCreateForUnit(PlayerGroupAll(), gv_xanthos)