# Look At Target From Unit Attach Point
Grammar — Look at target attached to attachPoint of unit
Flags —Function
Returns an actor that is an invisible look at target attached to the specified attach point of the specified unit.
# Arguments
unit
— Unitstring
<preset::AttachPoints> — Attach Point
Returns — actor
actor libNtve_gf_LookAtTargetFromUnitAttachPoint(
unit lp_unit,
string lp_attachPoint,
);
# Related
Category: Actor / Look At
- Look At Target From Point With Z Offset —
actor
— libNtve_gf_LookAtTargetFromPointWithZOffset - Look At Target From Unit Attach Point —
actor
— libNtve_gf_LookAtTargetFromUnitAttachPoint - Create Look At Target At Point —
void
— libNtve_gf_CreateLookAtTargetAtPoint - Create Look At Target At Unit Attach Point —
void
— libNtve_gf_CreateLookAtTargetAtUnitAttachPoint - Make Actor Look At Actor (Custom) —
void
— ActorLookAtStart - Make Actor Stop Looking (Custom) —
void
— ActorLookAtStop - Make Actor Look At Actor —
void
— ActorLookAtTypeStart - Make Actor Stop Looking —
void
— ActorLookAtTypeStop - Make Unit Look At Actor —
void
— libNtve_gf_SimpleLookAtStart - Make Unit Look At Point —
void
— libNtve_gf_MakeUnitLookAtPoint - Make Unit Look At Unit —
void
— libNtve_gf_MakeUnitLookAtUnit - Make Unit Stop Looking —
void
— libNtve_gf_SimpleLookAtStop
# Examples
mods/heromods/chogall.stormmod — base.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);