# Random Point Between Points

Grammar — Random point between point1 and point2
FlagsFunction

Returns a random point along the line segment connecting the specified points.

# Arguments

  • point — Point 1
  • point — Point 2

Returns — point

point libNtve_gf_RandomPointBetweenPoints(
	point lp_point1,
	point lp_point2,
);

Category: Point / Offsets

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L4445
libNtve_gf_RandomPointBetweenPoints(PointFromId(808), PointFromId(1098))
// L3848
libNtve_gf_RandomPointBetweenPoints(PointFromId(876), PointFromId(964))
// L3994
libNtve_gf_RandomPointBetweenPoints(PointFromId(572), PointFromId(591))
// L2616
libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_intruderGroup, 1))) + 180.0)))
// L2672
libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_brutaliskGroup, 1))) + 180.0)))
// L2728
libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_hybridGroup, 1))) + 180.0)))
// L4445
libNtve_gf_RandomPointBetweenPoints(PointFromId(808), PointFromId(1098))
// L3848
libNtve_gf_RandomPointBetweenPoints(PointFromId(876), PointFromId(964))
// L3994
libNtve_gf_RandomPointBetweenPoints(PointFromId(572), PointFromId(591))
// L2616
libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_intruderGroup, 1))) + 180.0)))
// L2672
libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_brutaliskGroup, 1))) + 180.0)))
// L2728
libNtve_gf_RandomPointBetweenPoints(UnitGetPosition(lv_scientist), PointWithOffsetPolar(UnitGetPosition(lv_scientist), RandomFixed(8.0, 12.0), (AngleBetweenPoints(UnitGetPosition(lv_scientist), UnitGetPosition(UnitGroupUnit(lv_hybridGroup, 1))) + 180.0)))
// L7197
libNtve_gf_RandomPointBetweenPoints(PointFromId(3166), PointFromId(3167))
// L8758
libNtve_gf_RandomPointBetweenPoints(PointFromId(422), PointFromId(684))
// L8764
libNtve_gf_RandomPointBetweenPoints(PointFromId(422), PointFromId(684))
// L8770
libNtve_gf_RandomPointBetweenPoints(PointFromId(684), PointFromId(849))
// L8776
libNtve_gf_RandomPointBetweenPoints(PointFromId(684), PointFromId(849))
// L8780
libNtve_gf_RandomPointBetweenPoints(PointFromId(422), PointFromId(684))
// L8782
libNtve_gf_RandomPointBetweenPoints(PointFromId(684), PointFromId(849))
// L8786
libNtve_gf_RandomPointBetweenPoints(PointFromId(850), PointFromId(1355))
// L8977
libNtve_gf_RandomPointBetweenPoints(PointFromId(850), PointFromId(1355))
// L7197
libNtve_gf_RandomPointBetweenPoints(PointFromId(3166), PointFromId(3167))
// L8758
libNtve_gf_RandomPointBetweenPoints(PointFromId(422), PointFromId(684))
// L8764
libNtve_gf_RandomPointBetweenPoints(PointFromId(422), PointFromId(684))
// L8770
libNtve_gf_RandomPointBetweenPoints(PointFromId(684), PointFromId(849))
// L8776
libNtve_gf_RandomPointBetweenPoints(PointFromId(684), PointFromId(849))
// L8780
libNtve_gf_RandomPointBetweenPoints(PointFromId(422), PointFromId(684))
// L8782
libNtve_gf_RandomPointBetweenPoints(PointFromId(684), PointFromId(849))
// L8786
libNtve_gf_RandomPointBetweenPoints(PointFromId(850), PointFromId(1355))
// L8977
libNtve_gf_RandomPointBetweenPoints(PointFromId(850), PointFromId(1355))