# Make Actor Look At Actor

Grammar — Make actor look at lookAtTarget|Target using look at type type
FlagsNative | Action

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

# Arguments

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

Returns — void

native void ActorLookAtTypeStart(
	actor s,
	string type,
	actor t,
);

Category: Actor / Look At

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:1214

    // Automatic Variable Declarations
    // Implementation
    ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lp_unit), lp_type, lp_lookAtTarget);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:1110

    // Automatic Variable Declarations
    // Implementation
    ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lp_unit), lp_type, lp_lookAtTarget);
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/MapMechanicsLib.galaxy:5636

    lv_siegeGiant = EventPlayerEffectUsedUnit(c_effectUnitSource);
    lv_target = EventPlayerEffectUsedUnit(c_effectUnitTarget);
    ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lv_siegeGiant), "MedHeadOnly", libNtve_gf_MainActorofUnit(lv_target));
    while (!(((UnitHasBehavior2(lv_siegeGiant, "MercDefenderSiegeGiantTauntProcLookAt") == false) || (UnitHasBehavior2(lv_siegeGiant, "JungleCreepPassive") == false)))) {
        Wait(1.0, c_timeGame);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:16646

    }

    ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lv_dehaka), "InstantHeadOnly", libNtve_gf_MainActorofUnit(lv_missile));
    return true;
}