# Random Point Between Points
Grammar — Random point between point1 and point2
Flags —Function
Returns a random point along the line segment connecting the specified points.
# Arguments
point
— Point 1point
— Point 2
Returns — point
point libNtve_gf_RandomPointBetweenPoints(
point lp_point1,
point lp_point2,
);
# Related
Category: Point / Offsets
- [F] —
point
— Point Facing Angle — ( libNtve_gf_PointFacingAngle ) - [F] —
point
— Point With Z Offset — ( libNtve_gf_PointWithZOffset ) - [F] —
point
— Point With Offset — ( PointWithOffset ) - [F] —
point
— Point With Polar Offset — ( PointWithOffsetPolar ) - [F] —
point
— Point Offset Towards Point — ( libNtve_gf_PointOffsetTowardsPoint ) - [F] —
point
— Random Point Between Points — ( libNtve_gf_RandomPointBetweenPoints ) - [F] —
point
— Reflected Point — ( PointReflect ) - [F] —
point
— Interpolated Point — ( PointInterpolate ) - [F] —
point
— Mid-Point — ( MidPoint )
# Examples
# campaigns/liberty.sc2campaign
// 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))