# Create Path Display For Unit Type
Grammar — Create Path Display For unitType With Data From Player unitPlayer For players At source
Flags —Native
|Action
# Arguments
playergroup
— Playersstring
<gamelink::Unit> — Unit Typeint
— Unit Playerpoint
— Source
Returns — int
<path>
native int PathCreateForUnitType(
playergroup inPlayerGroup,
string inType,
int inPlayer,
point inSource,
);
# 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: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.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.stormmod — base.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.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.stormmod/base.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.stormmod/base.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));