# Point From XY

Grammar — Point(x, y)
FlagsNative | Function

Returns a 2D location as a point. This allows you to specify any location on the map grid as a viable value for a point parameter.

# Arguments

  • fixed — X
  • fixed — Y

Returns — point

native point Point(fixed x, fixed y);

Category: Point / Creation And Modification

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L195
Point(140.0, 134.0)
// L196
Point(116.0, 120.0)
// L694
Point(1.5, -10.0)
// L696
Point(3.5, -10.0)
// L698
Point(6.5, -10.0)
// L700
Point(8.5, -10.0)
// L702
Point(11.5, -10.0)
// L704
Point(13.5, -10.0)
// L706
Point(16.5, -10.0)
// L708
Point(18.5, -10.0)
// L2442
Point(80.0, 80.0)
// L6330
Point(80.0, 80.0)
// L5576
Point(41.0, 83.0)
// L5598
Point(41.0, 83.0)
// L4928
Point(47.0, 77.0)
// L3711
Point((lv_x1 + ((lv_x2 - lv_x1) * lp_xRatio)), (lv_y1 + ((lv_y2 - lv_y1) * lp_yRatio)))
// L12557
Point(lp_x, lp_y)
// L12781
Point(lp_x, lp_y)
// L1293
Point(UnitGetCustomValue(lv_u, 1), UnitGetCustomValue(lv_u, 2))
// L2416
Point(UnitGetCustomValue(auto67BD9FEE_var, 0), UnitGetCustomValue(auto67BD9FEE_var, 1))
// L2425
Point(UnitGetCustomValue(auto67BD9FEE_var, 0), UnitGetCustomValue(auto67BD9FEE_var, 1))
// L2663
Point(UnitGetCustomValue(auto0F10452F_var, 0), UnitGetCustomValue(auto0F10452F_var, 1))
// L2672
Point(UnitGetCustomValue(auto0F10452F_var, 0), UnitGetCustomValue(auto0F10452F_var, 1))
// L2223
Point(38.0, 86.0)
// L3671
Point(157.0, 109.0)
// L3673
Point(163.0, 103.0)
// L3675
Point(148.0, 106.0)
// L3677
Point(160.0, 96.0)
// L3679
Point(142.0, 101.0)
// L3681
Point(154.0, 89.0)
// L2760
Point(UnitGetCustomValue(EventUnit(), 0), UnitGetCustomValue(EventUnit(), 1))
// L2796
Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1))
// L2803
Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1))
// L2362
Point(lv_x, lv_y)
// L2368
Point(lv_x, lv_y)
// L837
Point(UnitGetCustomValue(lv_u, 0), UnitGetCustomValue(lv_u, 1))
// L1132
Point(PointGetX(UnitGetPosition(gv_wALLOFFIRE)), ((IntToFixed(lv_i) * 3.5) + PointGetY(PointFromId(122))))
// L6809
Point(UnitGetCustomValue(auto4771A35A_var, 0), UnitGetCustomValue(auto4771A35A_var, 1))
// L6815
Point(UnitGetCustomValue(auto4771A35A_var, 0), UnitGetCustomValue(auto4771A35A_var, 1))
// L6411
Point(0.0, 0.0)
// L464
Point(0.0, 0.0)
// L4329
Point(UnitGetCustomValue(UnitLastCreated(), 0), UnitGetCustomValue(UnitLastCreated(), 1))
// L4344
Point(UnitGetCustomValue(autoD6231E2F_var, 0), UnitGetCustomValue(autoD6231E2F_var, 1))
// L4349
Point(UnitGetCustomValue(UnitLastCreated(), 0), UnitGetCustomValue(UnitLastCreated(), 1))
// L2440
Point(UnitGetCustomValue(auto4B7AEACA_var, 0), UnitGetCustomValue(auto4B7AEACA_var, 1))
// L2869
Point(UnitGetCustomValue(auto227EBC88_var, 0), UnitGetCustomValue(auto227EBC88_var, 1))
// L3267
Point(UnitGetCustomValue(auto76F80C67_var, 0), UnitGetCustomValue(auto76F80C67_var, 1))
// L3770
Point(UnitGetCustomValue(auto28730EB2_var, 0), UnitGetCustomValue(auto28730EB2_var, 1))
// L6071
Point(UnitGetCustomValue(auto394906C2_var, 0), UnitGetCustomValue(auto394906C2_var, 1))
// L7479
Point(UnitGetCustomValue(auto0685ADAD_var, 1), UnitGetCustomValue(auto0685ADAD_var, 2))
// L7479
Point(UnitGetCustomValue(auto0685ADAD_var, 3), UnitGetCustomValue(auto0685ADAD_var, 4))
// L7480
Point(UnitGetCustomValue(auto0685ADAD_var, 3), UnitGetCustomValue(auto0685ADAD_var, 4))
// L7483
Point(UnitGetCustomValue(auto0685ADAD_var, 1), UnitGetCustomValue(auto0685ADAD_var, 2))
// L195
Point(140.0, 134.0)
// L196
Point(116.0, 120.0)
// L694
Point(1.5, -10.0)
// L696
Point(3.5, -10.0)
// L698
Point(6.5, -10.0)
// L700
Point(8.5, -10.0)
// L702
Point(11.5, -10.0)
// L704
Point(13.5, -10.0)
// L706
Point(16.5, -10.0)
// L708
Point(18.5, -10.0)
// L2442
Point(80.0, 80.0)
// L6330
Point(80.0, 80.0)
// L5576
Point(41.0, 83.0)
// L5598
Point(41.0, 83.0)
// L4928
Point(47.0, 77.0)
// L3711
Point((lv_x1 + ((lv_x2 - lv_x1) * lp_xRatio)), (lv_y1 + ((lv_y2 - lv_y1) * lp_yRatio)))
// L12557
Point(lp_x, lp_y)
// L12781
Point(lp_x, lp_y)
// L1293
Point(UnitGetCustomValue(lv_u, 1), UnitGetCustomValue(lv_u, 2))
// L2416
Point(UnitGetCustomValue(auto67BD9FEE_var, 0), UnitGetCustomValue(auto67BD9FEE_var, 1))
// L2425
Point(UnitGetCustomValue(auto67BD9FEE_var, 0), UnitGetCustomValue(auto67BD9FEE_var, 1))
// L2663
Point(UnitGetCustomValue(auto0F10452F_var, 0), UnitGetCustomValue(auto0F10452F_var, 1))
// L2672
Point(UnitGetCustomValue(auto0F10452F_var, 0), UnitGetCustomValue(auto0F10452F_var, 1))
// L2223
Point(38.0, 86.0)
// L3671
Point(157.0, 109.0)
// L3673
Point(163.0, 103.0)
// L3675
Point(148.0, 106.0)
// L3677
Point(160.0, 96.0)
// L3679
Point(142.0, 101.0)
// L3681
Point(154.0, 89.0)
// L2760
Point(UnitGetCustomValue(EventUnit(), 0), UnitGetCustomValue(EventUnit(), 1))
// L2796
Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1))
// L2803
Point(UnitGetCustomValue(autoB111683E_var, 0), UnitGetCustomValue(autoB111683E_var, 1))
// L2362
Point(lv_x, lv_y)
// L2368
Point(lv_x, lv_y)
// L837
Point(UnitGetCustomValue(lv_u, 0), UnitGetCustomValue(lv_u, 1))
// L1132
Point(PointGetX(UnitGetPosition(gv_wALLOFFIRE)), ((IntToFixed(lv_i) * 3.5) + PointGetY(PointFromId(122))))
// L6809
Point(UnitGetCustomValue(auto4771A35A_var, 0), UnitGetCustomValue(auto4771A35A_var, 1))
// L6815
Point(UnitGetCustomValue(auto4771A35A_var, 0), UnitGetCustomValue(auto4771A35A_var, 1))
// L6411
Point(0.0, 0.0)
// L464
Point(0.0, 0.0)
// L4329
Point(UnitGetCustomValue(UnitLastCreated(), 0), UnitGetCustomValue(UnitLastCreated(), 1))
// L4344
Point(UnitGetCustomValue(autoD6231E2F_var, 0), UnitGetCustomValue(autoD6231E2F_var, 1))
// L4349
Point(UnitGetCustomValue(UnitLastCreated(), 0), UnitGetCustomValue(UnitLastCreated(), 1))
// L2440
Point(UnitGetCustomValue(auto4B7AEACA_var, 0), UnitGetCustomValue(auto4B7AEACA_var, 1))
// L2869
Point(UnitGetCustomValue(auto227EBC88_var, 0), UnitGetCustomValue(auto227EBC88_var, 1))
// L3267
Point(UnitGetCustomValue(auto76F80C67_var, 0), UnitGetCustomValue(auto76F80C67_var, 1))