# Make Unit Look At Actor
Grammar — Make unit unit look at lookAtTarget|Target using look at type type
Flags —Action
Makes the specified unit look at the specified target, using preset settings defined by the specified look at type.
# Arguments
unit
— Unitstring
[ preset::LookAtType ] — Typeactor
— Look At Target
Returns — void
void libNtve_gf_SimpleLookAtStart(
unit lp_unit,
string lp_type,
actor lp_lookAtTarget,
);
# Related
Category: Actor / Look At
- [F] —
actor
— Look At Target From Point With Z Offset — ( libNtve_gf_LookAtTargetFromPointWithZOffset ) - [F] —
actor
— Look At Target From Unit Attach Point — ( libNtve_gf_LookAtTargetFromUnitAttachPoint ) - [F] —
void
— Create Look At Target At Point — ( libNtve_gf_CreateLookAtTargetAtPoint ) - [F] —
void
— Create Look At Target At Unit Attach Point — ( libNtve_gf_CreateLookAtTargetAtUnitAttachPoint ) - [F] —
void
— Make Actor Look At Actor (Custom) — ( ActorLookAtStart ) - [F] —
void
— Make Actor Stop Looking (Custom) — ( ActorLookAtStop ) - [F] —
void
— Make Actor Look At Actor — ( ActorLookAtTypeStart ) - [F] —
void
— Make Actor Stop Looking — ( ActorLookAtTypeStop ) - [F] —
void
— Make Unit Look At Actor — ( libNtve_gf_SimpleLookAtStart ) - [F] —
void
— Make Unit Look At Point — ( libNtve_gf_MakeUnitLookAtPoint ) - [F] —
void
— Make Unit Look At Unit — ( libNtve_gf_MakeUnitLookAtUnit ) - [F] —
void
— Make Unit Stop Looking — ( libNtve_gf_SimpleLookAtStop )
# Examples
# campaigns/swarm.sc2campaign
// L554
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom("::external.ZFLookAtHead"))
// L554
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom("::external.ZFLookAtHead"))
# campaigns/swarmstoryutil.sc2mod
// L4189
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "Turret_Right", ActorFrom(lib281DEC45_gv_zSS_LookAtWingActorRef))
// L4225
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "Turret_Left", ActorFrom(lib281DEC45_gv_zSS_LookAtHairActorRef))
// L4240
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantEyesOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtEyePrimalActorRef))
// L4251
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtHeadActorRef))
// L12007
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtHeadActorRef))
// L12008
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantEyesOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtEyeActorRef))
# campaigns/voidstory.sc2campaign
// L3025
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit("DTLeader"), "VerySlowStandingSubtle", libNtve_gf_MainActorofUnit(libVCST_gf_ClickableUnit("Preserver")))
// L3031
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit("DTLeader"), "VerySlowStandingSubtle", libNtve_gf_MainActorofUnit(libVCST_gf_ClickableUnit("Preserver")))
// L3542
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit(lv_mainCharacter), "InstantHeadOnly", ActorFrom(libVCST_gv_pS_LookAtMainCharacterActorRef))
// L3552
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit(libVCST_gv_pS_CurrentConvoChar), "InstantHeadOnly", ActorFrom(libVCST_gv_pS_LookAtCurrentCharacterActorRef))
// L3562
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit("Preserver"), "Turret_Right", ActorFrom(libVCST_gv_pS_LookAtRohanaHairActorRef))
# mods/core.sc2mod
// L1221
libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated())
// L1228
libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated())
// L1117
libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated())
// L1124
libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated())
# mods/heromods/chogall.stormmod
// L1740
libNtve_gf_SimpleLookAtStart(libGDHL_gv_chogallPairs[lv_chogallTeam].lv_choUnit, "FastHeadOnly", libNtve_gf_LookAtTargetFromUnitAttachPoint(libGDHL_gv_chogallPairs[lv_chogallTeam].lv_choUnit, "Ref_Attacher"))
# mods/missionpacks/novacampaign.sc2mod
// L3032
libNtve_gf_SimpleLookAtStart(libNCST_gf_ClickableUnit(lv_mainCharacter), "InstantHeadOnly", ActorFrom(libNCST_gv_NS_LookAtMainCharacterActorRef))
// L3041
libNtve_gf_SimpleLookAtStart(libNCST_gf_ClickableUnit(libNCST_gv_nS_CurrentConvoChar), "InstantHeadOnly", ActorFrom(libNCST_gv_NS_LookAtCurrentCharacterActorRef))