# Create Path Display For Unit Type

Grammar — Create Path Display For unitType With Data From Player unitPlayer For players At source
FlagsNative | Action

# Arguments

  • playergroup — Players
  • string<gamelink::Unit> — Unit Type
  • int — Unit Player
  • point — Source

Returns — int<path>

native int PathCreateForUnitType(
	playergroup inPlayerGroup,
	string inType,
	int inPlayer,
	point inSource,
);

Category: UI / Path Display

# Examples

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:334

    auto08F105A4_val = lp_lane;
    if (auto08F105A4_val == 1) {
        PathCreateForUnitType(PlayerGroupAll(), "FootmanMinion", libStEx_gv_pLAYER_11_ORDER, PointFromId(1129906521));
        PathSetDestinationPoint(PathLastCreated(), PointFromId(80));
        PathAddWayPoint(PathLastCreated(), PointFromId(2117));

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:347

    }
    else if (auto08F105A4_val == 2) {
        PathCreateForUnitType(PlayerGroupAll(), "FootmanMinion", libStEx_gv_pLAYER_11_ORDER, PointFromId(597304232));
        PathSetDestinationPoint(PathLastCreated(), PointFromId(542));
        PathAddWayPoint(PathLastCreated(), PointFromId(2145));

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmap/MapScript.galaxy:363

    }
    else if (auto08F105A4_val == 3) {
        PathCreateForUnitType(PlayerGroupAll(), "FootmanMinion", libStEx_gv_pLAYER_11_ORDER, PointFromId(984793316));
        PathSetDestinationPoint(PathLastCreated(), PointFromId(380));
        PathAddWayPoint(PathLastCreated(), PointFromId(372));

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmapMapScript.galaxy:334

    auto08F105A4_val = lp_lane;
    if (auto08F105A4_val == 1) {
        PathCreateForUnitType(PlayerGroupAll(), "FootmanMinion", libStEx_gv_pLAYER_11_ORDER, PointFromId(1129906521));
        PathSetDestinationPoint(PathLastCreated(), PointFromId(80));
        PathAddWayPoint(PathLastCreated(), PointFromId(2117));

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmapMapScript.galaxy:347

    }
    else if (auto08F105A4_val == 2) {
        PathCreateForUnitType(PlayerGroupAll(), "FootmanMinion", libStEx_gv_pLAYER_11_ORDER, PointFromId(597304232));
        PathSetDestinationPoint(PathLastCreated(), PointFromId(542));
        PathAddWayPoint(PathLastCreated(), PointFromId(2145));

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorial01.stormmapMapScript.galaxy:363

    }
    else if (auto08F105A4_val == 3) {
        PathCreateForUnitType(PlayerGroupAll(), "FootmanMinion", libStEx_gv_pLAYER_11_ORDER, PointFromId(984793316));
        PathSetDestinationPoint(PathLastCreated(), PointFromId(380));
        PathAddWayPoint(PathLastCreated(), PointFromId(372));