# Make Unit Look At Unit

Grammar — Make unit unit look at the attachPoint|Attach attach point of lookAtTargetUnit|Unit using look at type type
FlagsAction

Makes the specified unit look at the specified other unit’s attach point, using preset settings defined by the specified look at type.

# Arguments

  • unit — Unit
  • string [ preset::LookAtType ] — Type
  • unit — Look At Target Unit
  • string [ preset::AttachPoints ] — Attach Point

Returns — void

void libNtve_gf_MakeUnitLookAtUnit(
	unit lp_unit,
	string lp_type,
	unit lp_lookAtTargetUnit,
	string lp_attachPoint,
);

Category: Actor / Look At

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L3520
libNtve_gf_MakeUnitLookAtUnit(lp_unit, lp_type, lp_lookAtTargetUnit, lp_attachPoint)
// L3520
libNtve_gf_MakeUnitLookAtUnit(lp_unit, lp_type, lp_lookAtTargetUnit, lp_attachPoint)
// L619
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zagara"), "SlowHeadOnlySubtle", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L853
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "Ref_Head")
// L878
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "InstantEyesOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L927
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "Ref_Head")
// L952
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "InstantEyesOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L612
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Stukov"), "Ref_Head")
// L613
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Stukov"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L877
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zagara"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L878
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Zagara"), "Ref_Head")
// L903
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "InstantEyesOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L508
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zagara"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L581
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "SlowHeadOnly", lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "Ref_Head")
// L586
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "Ref_Head")
// L8592
libNtve_gf_MakeUnitLookAtUnit(gv_zurvan, "MedStanding", lv_helperUnit, "Ref_Overhead")
// L8593
libNtve_gf_MakeUnitLookAtUnit(gv_zurvan, "Turret_Left", gv_zurvan, "Ref_Hardpoint 03")
// L8594
libNtve_gf_MakeUnitLookAtUnit(gv_zurvan, "Turret_Right", gv_zurvan, "Ref_Hardpoint 03")
// L619
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zagara"), "SlowHeadOnlySubtle", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L853
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "Ref_Head")
// L878
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "InstantEyesOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L927
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "Ref_Head")
// L952
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "InstantEyesOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L612
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Stukov"), "Ref_Head")
// L613
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Stukov"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L877
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zagara"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L878
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Zagara"), "Ref_Head")
// L903
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "InstantEyesOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L508
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Zagara"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L581
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "SlowHeadOnly", lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "Ref_Head")
// L586
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Zerg Adjutant"), "Ref_Head")
// L8592
libNtve_gf_MakeUnitLookAtUnit(gv_zurvan, "MedStanding", lv_helperUnit, "Ref_Overhead")
// L8593
libNtve_gf_MakeUnitLookAtUnit(gv_zurvan, "Turret_Left", gv_zurvan, "Ref_Hardpoint 03")
// L8594
libNtve_gf_MakeUnitLookAtUnit(gv_zurvan, "Turret_Right", gv_zurvan, "Ref_Hardpoint 03")

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// L4151
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit(lp_lookingCharacter), "InstantEyesOnly", lib281DEC45_gf_CharacterUnit(lv_targetCharacter), "Ref_Head")
// L4154
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit(lp_lookingCharacter), "InstantHeadOnlySubtle", lib281DEC45_gf_CharacterUnit(lv_targetCharacter), "Ref_Head")
// L4157
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit(lp_lookingCharacter), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit(lv_targetCharacter), "Ref_Head")
// L4228
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "Turret_Left", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Hardpoint")
// L12317
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Evolution Master"), "InstantHeadOnly", lib281DEC45_gf_CharacterUnit("Kerrigan"), "Ref_Head")
// L12318
libNtve_gf_MakeUnitLookAtUnit(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnlySubtle", lib281DEC45_gf_CharacterUnit("Evolution Master"), "Ref_Head")

# campaigns/void.sc2campaign

MapScript.galaxy

// L6463
libNtve_gf_MakeUnitLookAtUnit(gv_narud, "SlowStanding", EventUnitTargetUnit(), "Ref_Center")
// L6468
libNtve_gf_MakeUnitLookAtUnit(gv_narud, "SlowStanding", EventUnitTargetUnit(), "Ref_Center")
// L6463
libNtve_gf_MakeUnitLookAtUnit(gv_narud, "SlowStanding", EventUnitTargetUnit(), "Ref_Center")
// L6468
libNtve_gf_MakeUnitLookAtUnit(gv_narud, "SlowStanding", EventUnitTargetUnit(), "Ref_Center")
// L8262
libNtve_gf_MakeUnitLookAtUnit(libStEx_gv_hERO_PlayerUnit, "SlowStanding", libStEx_gv_hERO_FriendlyUther, "Ref_Head")
// L8262
libNtve_gf_MakeUnitLookAtUnit(libStEx_gv_hERO_PlayerUnit, "SlowStanding", libStEx_gv_hERO_FriendlyUther, "Ref_Head")

# mods/heroesdata.stormmod

GameDataHelperLib.galaxy

// L16350
libNtve_gf_MakeUnitLookAtUnit(lv_medic, "RobotArmsOnly", lv_target, "Ref_Center")