# Look At Target From Unit Attach Point

Grammar — Look at target attached to attachPoint of unit
FlagsFunction

Returns an actor that is an invisible look at target attached to the specified attach point of the specified unit.

# Arguments

  • unit — Unit
  • string<preset::AttachPoints> — Attach Point

Returns — actor

actor libNtve_gf_LookAtTargetFromUnitAttachPoint(
	unit lp_unit,
	string lp_attachPoint,
);

Category: Actor / Look At

# Examples

mods/heromods/chogall.stormmodbase.stormdata/LibHCHO.galaxy:1740

    UnitSelect(libGDHL_gv_chogallPairs[lv_chogallTeam].lv_gallUnit, lv_gallPlayer, true);
    libGame_gv_players[lv_gallPlayer].lv_playerStatus = libGame_ge_PlayerStatusStorm_Playing;
    libNtve_gf_SimpleLookAtStart(libGDHL_gv_chogallPairs[lv_chogallTeam].lv_choUnit, "FastHeadOnly", libNtve_gf_LookAtTargetFromUnitAttachPoint(libGDHL_gv_chogallPairs[lv_chogallTeam].lv_choUnit, "Ref_Attacher"));
    UnitCreateEffectUnit(lv_choUnit, "ChoGallLinkUnitsDummyEffect", libGDHL_gv_chogallPairs[lv_chogallTeam].lv_gallUnit);
    UnitCreateEffectUnit(lv_choUnit, "HeroGenericTimeStopListenerApplyBehavior", libGDHL_gv_chogallPairs[lv_chogallTeam].lv_gallUnit);