# Set Path Display Minimum Linear Distance

FlagsNative | Action

Linear distance is “as the crow flies” - it ignores all pathing obstacles.

# Arguments

  • int<path> — Path Display
  • fixed — Distance

Returns — void

native void PathSetMinimumLinearDistance(
	int inPathId,
	fixed inDistance,
);

Category: UI / Path Display

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:1230

    PathSetMinimumStepCount(PathLastCreated(), 0);
    PathSetMinimumTravelDistance(PathLastCreated(), 3.0);
    PathSetMinimumLinearDistance(PathLastCreated(), 3.0);
    PathSetLineTexture(PathLastCreated(), c_pathLocationWorld, "Assets\\Textures\\storm_waypointline_game.dds");
    PathSetLineTileLength(PathLastCreated(), c_pathLocationWorld, 0.8);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:8019

    PathSetMinimumStepCount(PathLastCreated(), 0);
    PathSetMinimumTravelDistance(PathLastCreated(), 0.0);
    PathSetMinimumLinearDistance(PathLastCreated(), 3.0);
    PathSetLineTexture(PathLastCreated(), c_pathLocationWorld, "Assets\\Textures\\storm_waypointline_game.dds");
    PathSetColor(PathLastCreated(), c_pathLocationAll, Color(80.39, 98.04, 68.63));