# Unit Can Path To Point

Grammarunit Can Path To target with range Range and maxDistance Maximum Distance
FlagsNative | Function

This returns whether or not the unit can path to the specified point.

# Arguments

  • unit — Source Unit
  • point — Target
  • fixed — Range
  • fixed — Max Distance

Returns — bool

native bool UnitPathableToPoint(
	unit u,
	point inTarget,
	fixed inRange,
	fixed inMaxDistance,
);

Category: Unit / Basic

# Examples

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L1589
UnitPathableToPoint(lp_killingUnit, PlayerStartLocation(1), 5.0, 100000.0)

# mods/warcoop/legends/gromhellscream.sc2mod

LibLGrm.galaxy

// L47
UnitPathableToPoint(lp_pathingUnit, lv_currentpoint, 0.0, 500.0)