# Mid-Point

Grammar — Mid-Point of sourcePoint and targetPoint
FlagsNative | Function

Returns the point half-way between the two given points.

# Arguments

  • point — Source Point
  • point — Target Point

Returns — point

native point MidPoint(point source, point dest);

Category: Point / Offsets

# Examples

# mods/heroesdata.stormmod

AILib.galaxy

// L2247
MidPoint(lp_selfPosition, lp_otherPoint)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L1407
MidPoint(PointFromId(2232), PointFromId(905))
// L1637
MidPoint(PointFromId(2232), PointFromId(905))
// L1407
MidPoint(PointFromId(2232), PointFromId(905))
// L1637
MidPoint(PointFromId(2232), PointFromId(905))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L6952
MidPoint(PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 1)), PlayerStartLocation(PlayerGroupPlayer(libCOOC_gf_CommanderPlayers(), 2)))