# 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
- 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
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zstoryexpedition.sc2map/MapScript.galaxy:554
libNtve_gf_SimpleLookAtStop(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly");
if ((lib281DEC45_gf_CurrentCameraCharacter() == "Kerrigan") && (lib281DEC45_gf_CurrentConversationCamera() == lib281DEC45_ge_CameraType_Custom02)) {
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom("::external.ZFLookAtHead"));
}
else {
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zstoryexpedition.sc2map — MapScript.galaxy:554
libNtve_gf_SimpleLookAtStop(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly");
if ((lib281DEC45_gf_CurrentCameraCharacter() == "Kerrigan") && (lib281DEC45_gf_CurrentConversationCamera() == lib281DEC45_ge_CameraType_Custom02)) {
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom("::external.ZFLookAtHead"));
}
else {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4189
return ;
}
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "Turret_Right", ActorFrom(lib281DEC45_gv_zSS_LookAtWingActorRef));
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4225
}
if ((lv_useCutscene == true)) {
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "Turret_Left", ActorFrom(lib281DEC45_gv_zSS_LookAtHairActorRef));
}
else {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4240
}
libNtve_gf_SimpleLookAtStop(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantEyesOnly");
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantEyesOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtEyePrimalActorRef));
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:4251
}
libNtve_gf_SimpleLookAtStop(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly");
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtHeadActorRef));
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:12007
}
else if ((ConversationDataActiveLine() == "zSM_EvolutionMaster|Line00110")) {
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtHeadActorRef));
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantEyesOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtEyeActorRef));
lib281DEC45_gf_ClearAnimationwithblendtime(lib281DEC45_gv_zSS_CONVANIMID, lib281DEC45_gf_CharacterUnit("Kerrigan"), 0.8);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:12008
else if ((ConversationDataActiveLine() == "zSM_EvolutionMaster|Line00110")) {
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantHeadOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtHeadActorRef));
libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "InstantEyesOnly", ActorFrom(lib281DEC45_gv_zSS_LookAtEyeActorRef));
lib281DEC45_gf_ClearAnimationwithblendtime(lib281DEC45_gv_zSS_CONVANIMID, lib281DEC45_gf_CharacterUnit("Kerrigan"), 0.8);
lib281DEC45_gf_SkipConversationLookAt();
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3025
libVCST_gf_ClearAnimationwithblendtime("::Conversation", libVCST_gf_ClickableUnit("DTLeader"), 0.0);
ActorSend(libNtve_gf_MainActorofUnit(libVCST_gf_ClickableUnit("DTLeader")), "AnimGroupRemove Left Instant 0.000000");
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit("DTLeader"), "VerySlowStandingSubtle", libNtve_gf_MainActorofUnit(libVCST_gf_ClickableUnit("Preserver")));
libNtve_gf_SimpleLookAtStop(libVCST_gf_ClickableUnit("DTLeader"), "InstantStandingSubtle");
libNtve_gf_SendActorMessageToUnit(libVCST_gf_ClickableUnit("DTLeader"), "AnimCancelActiveBlends");
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3031
else {
ActorSend(libNtve_gf_MainActorofUnit(libVCST_gf_ClickableUnit("DTLeader")), "AnimGroupRemove Left");
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit("DTLeader"), "VerySlowStandingSubtle", libNtve_gf_MainActorofUnit(libVCST_gf_ClickableUnit("Preserver")));
libNtve_gf_SimpleLookAtStop(libVCST_gf_ClickableUnit("DTLeader"), "VerySlowStandingSubtle");
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3542
libNtve_gf_SimpleLookAtStop(libVCST_gf_ClickableUnit(lv_mainCharacter), "InstantHeadOnly");
if ((ActorFrom(libVCST_gv_pS_LookAtMainCharacterActorRef) != null)) {
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit(lv_mainCharacter), "InstantHeadOnly", ActorFrom(libVCST_gv_pS_LookAtMainCharacterActorRef));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3552
libNtve_gf_SimpleLookAtStop(libVCST_gf_ClickableUnit(libVCST_gv_pS_CurrentConvoChar), "InstantHeadOnly");
if ((ActorFrom(libVCST_gv_pS_LookAtCurrentCharacterActorRef) != null)) {
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit(libVCST_gv_pS_CurrentConvoChar), "InstantHeadOnly", ActorFrom(libVCST_gv_pS_LookAtCurrentCharacterActorRef));
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:3562
libNtve_gf_SimpleLookAtStop(libVCST_gf_ClickableUnit("Preserver"), "Turret_Right");
if ((ActorFrom(libVCST_gv_pS_LookAtRohanaHairActorRef) != null)) {
libNtve_gf_SimpleLookAtStart(libVCST_gf_ClickableUnit("Preserver"), "Turret_Right", ActorFrom(libVCST_gv_pS_LookAtRohanaHairActorRef));
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1221
// Implementation
libNtve_gf_CreateActorAtPoint("LookAtTarget", lp_point);
libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated());
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1228
// Implementation
ActorCreate(ActorScopeFromUnit(lp_lookAtTargetUnit), "SiteHosted", lp_attachPoint, "", "");
libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated());
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1117
// Implementation
libNtve_gf_CreateActorAtPoint("LookAtTarget", lp_point);
libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated());
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1124
// Implementation
ActorCreate(ActorScopeFromUnit(lp_lookAtTargetUnit), "SiteHosted", lp_attachPoint, "", "");
libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated());
}
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);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3032
libNtve_gf_SimpleLookAtStop(libNCST_gf_ClickableUnit(lv_mainCharacter), "InstantHeadOnly");
if ((ActorFrom(libNCST_gv_NS_LookAtMainCharacterActorRef) != null)) {
libNtve_gf_SimpleLookAtStart(libNCST_gf_ClickableUnit(lv_mainCharacter), "InstantHeadOnly", ActorFrom(libNCST_gv_NS_LookAtMainCharacterActorRef));
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:3041
libNtve_gf_SimpleLookAtStop(libNCST_gf_ClickableUnit(libNCST_gv_nS_CurrentConvoChar), "InstantHeadOnly");
if ((ActorFrom(libNCST_gv_NS_LookAtCurrentCharacterActorRef) != null)) {
libNtve_gf_SimpleLookAtStart(libNCST_gf_ClickableUnit(libNCST_gv_nS_CurrentConvoChar), "InstantHeadOnly", ActorFrom(libNCST_gv_NS_LookAtCurrentCharacterActorRef));
}