# Make Actor Look At Actor
Grammar — Make actor look at lookAtTarget|Target using look at type type
Flags —Native
|Action
Makes the specified actor look at the specified target, using preset settings defined by the specified look at type.
# Arguments
actor
— Actorstring
<preset::LookAtType> — Typeactor
— Look At Target
Returns — void
native void ActorLookAtTypeStart(
actor s,
string type,
actor t,
);
# 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
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:1214
// Automatic Variable Declarations
// Implementation
ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lp_unit), lp_type, lp_lookAtTarget);
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:1110
// Automatic Variable Declarations
// Implementation
ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lp_unit), lp_type, lp_lookAtTarget);
}
mods/heroesdata.stormmod — base.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.sc2mod — base.sc2data/LibCOMI.galaxy:16646
}
ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lv_dehaka), "InstantHeadOnly", libNtve_gf_MainActorofUnit(lv_missile));
return true;
}