# Make Unit Look At Actor

Grammar — Make unit unit look at lookAtTarget|Target using look at type type
FlagsAction

Makes the specified unit look at the specified target, using preset settings defined by the specified look at type.

# Arguments

  • unit — Unit
  • string<preset::LookAtType> — Type
  • actor — Look At Target

Returns — void

void libNtve_gf_SimpleLookAtStart(
	unit lp_unit,
	string lp_type,
	actor lp_lookAtTarget,
);

Category: Actor / Look At

# Examples

campaigns/swarm.sc2campaignbase.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.sc2mapMapScript.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.sc2modbase.sc2data/Lib281DEC45.galaxy:4189

        return ;
    }
    libNtve_gf_SimpleLookAtStart(lib281DEC45_gf_CharacterUnit("Kerrigan"), "Turret_Right", ActorFrom(lib281DEC45_gv_zSS_LookAtWingActorRef));
}

campaigns/swarmstoryutil.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2campaignbase.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.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1221

    // Implementation
    libNtve_gf_CreateActorAtPoint("LookAtTarget", lp_point);
    libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated());
}

mods/core.sc2modbase.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.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1117

    // Implementation
    libNtve_gf_CreateActorAtPoint("LookAtTarget", lp_point);
    libNtve_gf_SimpleLookAtStart(lp_unit, lp_type, libNtve_gf_ActorLastCreated());
}

mods/core.stormmodbase.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.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);

mods/missionpacks/novacampaign.sc2modbase.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.sc2modbase.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));
    }