# Make Unit Look At Point

Grammar — Make unit unit look at point using look at type type
FlagsAction

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

# Arguments

  • unit — Unit
  • string<preset::LookAtType> — Type
  • point — Point

Returns — void

void libNtve_gf_MakeUnitLookAtPoint(
	unit lp_unit,
	string lp_type,
	point lp_point,
);

Category: Actor / Look At

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3500

    // Implementation
    if ((gv_lookAtEnabled == true)) {
        libNtve_gf_MakeUnitLookAtPoint(lp_unit, lp_type, lp_point);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:3500

    // Implementation
    if ((gv_lookAtEnabled == true)) {
        libNtve_gf_MakeUnitLookAtPoint(lp_unit, lp_type, lp_point);
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:2035

    }
    libVCMI_gf_SetUnitInfoTextCampaign(gv_narud, null, StringExternal("Param/Value/85DF0C7D"), null);
    libNtve_gf_MakeUnitLookAtPoint(gv_narud, "Turret_Left", PointWithOffset(UnitGetPosition(gv_narud), 0.0, -5.0));
    TriggerExecute(gt_PerformanceInit, true, false);
    return true;

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:6487

                lv_lookingAtTarget = false;
                if ((AngleBetweenPoints(EventUnitTargetPoint(), UnitGetPosition(EventUnit())) <= lv_clampLeft)) {
                    libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", PointWithOffsetPolar(UnitGetPosition(gv_narud), 20.0, 230.0));
                }
                else {

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:6490

                }
                else {
                    libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", PointWithOffsetPolar(UnitGetPosition(gv_narud), 20.0, 330.0));
                }
            }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/sc2epilogue01.sc2map/MapScript.galaxy:6539

    }

    libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", lv_voidRiftPoint);
    return true;
}

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:2035

    }
    libVCMI_gf_SetUnitInfoTextCampaign(gv_narud, null, StringExternal("Param/Value/85DF0C7D"), null);
    libNtve_gf_MakeUnitLookAtPoint(gv_narud, "Turret_Left", PointWithOffset(UnitGetPosition(gv_narud), 0.0, -5.0));
    TriggerExecute(gt_PerformanceInit, true, false);
    return true;

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:6487

                lv_lookingAtTarget = false;
                if ((AngleBetweenPoints(EventUnitTargetPoint(), UnitGetPosition(EventUnit())) <= lv_clampLeft)) {
                    libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", PointWithOffsetPolar(UnitGetPosition(gv_narud), 20.0, 230.0));
                }
                else {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:6490

                }
                else {
                    libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", PointWithOffsetPolar(UnitGetPosition(gv_narud), 20.0, 330.0));
                }
            }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/sc2epilogue01.sc2mapMapScript.galaxy:6539

    }

    libNtve_gf_MakeUnitLookAtPoint(gv_narud, "SlowStanding", lv_voidRiftPoint);
    return true;
}

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:7962

    libNtve_gf_CreateModelAtPoint("HeroRespawn", PointFromId(7));
    SoundPlayAtPointForPlayer(SoundLink("Gen_Hero_Respawn", -1), c_maxPlayers, PlayerGroupAll(), PointFromId(7), 0.0, 100.0, 0.0);
    libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedHeadOnly", PointFromId(1580));
    Wait(1.0, c_timeGame);
    libNtve_gf_ShowHideUnit(libStEx_gv_hERO_PlayerUnit, true);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:7966

    libNtve_gf_ShowHideUnit(libStEx_gv_hERO_PlayerUnit, true);
    Wait(0.25, c_timeGame);
    libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedHeadOnly", PointFromId(1904));
    Wait(0.75, c_timeGame);
    UnitIssueOrder(libStEx_gv_hERO_PlayerUnit, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(34)), c_orderQueueReplace);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:7980

    TransmissionWait(TransmissionLastSent(), 0.0);
    libCore_gf_SendTransmissionCampaign(libStEx_gv_hERO_FriendlyUther, "TutorialVO|Line00656", c_transmissionDurationAdd, 0.0, false, libCore_ge_TransmissionPortraitOptioins_DontShowPortrait, libCore_ge_TransmissionCueSoundOptions_DefaultCueSoundBehavior);
    libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "SlowStanding", PointFromId(1105));
    Wait(0.5, c_timeGame);
    CameraApplyInfo(libStEx_gv_pLAYER_01_USER, CameraInfoFromId(770), 2.0, -1, 10.0, true);

mods/heroes.stormmodbase.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:8258

    libNtve_gf_PauseUnit(libStEx_gv_hERO_EnemyNazeebo, false);
    CameraApplyInfo(libStEx_gv_pLAYER_01_USER, CameraInfoFromId(1512), 2.0, -1, 10.0, true);
    libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedStandingSubtle", PointFromId(1104));
    TransmissionWait(TransmissionLastSent(), 0.0);
    Wait(1.5, c_timeGame);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:7962

    libNtve_gf_CreateModelAtPoint("HeroRespawn", PointFromId(7));
    SoundPlayAtPointForPlayer(SoundLink("Gen_Hero_Respawn", -1), c_maxPlayers, PlayerGroupAll(), PointFromId(7), 0.0, 100.0, 0.0);
    libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedHeadOnly", PointFromId(1580));
    Wait(1.0, c_timeGame);
    libNtve_gf_ShowHideUnit(libStEx_gv_hERO_PlayerUnit, true);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:7966

    libNtve_gf_ShowHideUnit(libStEx_gv_hERO_PlayerUnit, true);
    Wait(0.25, c_timeGame);
    libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedHeadOnly", PointFromId(1904));
    Wait(0.75, c_timeGame);
    UnitIssueOrder(libStEx_gv_hERO_PlayerUnit, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(34)), c_orderQueueReplace);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:7980

    TransmissionWait(TransmissionLastSent(), 0.0);
    libCore_gf_SendTransmissionCampaign(libStEx_gv_hERO_FriendlyUther, "TutorialVO|Line00656", c_transmissionDurationAdd, 0.0, false, libCore_ge_TransmissionPortraitOptioins_DontShowPortrait, libCore_ge_TransmissionCueSoundOptions_DefaultCueSoundBehavior);
    libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "SlowStanding", PointFromId(1105));
    Wait(0.5, c_timeGame);
    CameraApplyInfo(libStEx_gv_pLAYER_01_USER, CameraInfoFromId(770), 2.0, -1, 10.0, true);

mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmapMapScript.galaxy:8258

    libNtve_gf_PauseUnit(libStEx_gv_hERO_EnemyNazeebo, false);
    CameraApplyInfo(libStEx_gv_pLAYER_01_USER, CameraInfoFromId(1512), 2.0, -1, 10.0, true);
    libNtve_gf_MakeUnitLookAtPoint(libStEx_gv_hERO_FriendlyUther, "MedStandingSubtle", PointFromId(1104));
    TransmissionWait(TransmissionLastSent(), 0.0);
    Wait(1.5, c_timeGame);