# Make Unit Look At Point

Grammar — Make unit unit look at point using look at type type
FlagsAction

Makes the specified unit look at the specified point, using preset settings defined by the specified look at type.

# Arguments

  • unit — Unit
  • string [ preset::LookAtType ] — Type
  • point — Point

Returns — void

void libNtve_gf_MakeUnitLookAtPoint(
	unit lp_unit,
	string lp_type,
	point lp_point,
);

Category: Actor / Look At

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3500
libNtve_gf_MakeUnitLookAtPoint(lp_unit, lp_type, lp_point)
// L3500
libNtve_gf_MakeUnitLookAtPoint(lp_unit, lp_type, lp_point)
// L2035
libNtve_gf_MakeUnitLookAtPoint(gv_narud, "Turret_Left", PointWithOffset(UnitGetPosition(gv_narud), 0.0, -5.0))
// L6487
libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", PointWithOffsetPolar(UnitGetPosition(gv_narud), 20.0, 230.0))
// L6490
libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", PointWithOffsetPolar(UnitGetPosition(gv_narud), 20.0, 330.0))
// L6539
libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", lv_voidRiftPoint)
// L2035
libNtve_gf_MakeUnitLookAtPoint(gv_narud, "Turret_Left", PointWithOffset(UnitGetPosition(gv_narud), 0.0, -5.0))
// L6487
libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", PointWithOffsetPolar(UnitGetPosition(gv_narud), 20.0, 230.0))
// L6490
libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", PointWithOffsetPolar(UnitGetPosition(gv_narud), 20.0, 330.0))
// L6539
libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", lv_voidRiftPoint)
// L7962
libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedHeadOnly", PointFromId(1580))
// L7966
libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedHeadOnly", PointFromId(1904))
// L7980
libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "SlowStanding", PointFromId(1105))
// L8258
libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedStandingSubtle", PointFromId(1104))
// L7962
libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedHeadOnly", PointFromId(1580))
// L7966
libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedHeadOnly", PointFromId(1904))
// L7980
libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "SlowStanding", PointFromId(1105))
// L8258
libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedStandingSubtle", PointFromId(1104))