# Make Actor Look At Actor (Custom)
Grammar — Make source look at target using custom values (type: type, weight: weight, time: time)
Flags —Native
|Action
Makes an actor look at another actor. The parameters of this action allow you more control over the look at than “Make Actor Look At Actor”.
# Arguments
actor
— Sourcestring
<preset::LookAtGroup> — Typeint
— Weightfixed
— Timeactor
— Target
Returns — void
native void ActorLookAtStart(
actor s,
string lookAt,
int weight,
fixed time,
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
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:1926
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropLifeMax, gv_trainList[lv_trainsToSpawn[lv_i]].lv_maxLife);
if ((UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngineFast") && (UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngine")) {
ActorLookAtStart(libNtve_gf_MainActorofUnit(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]), "Chest", 100, 0.0, libNtve_gf_MainActorofUnit(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[(lv_currentCar - 1)]));
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:1926
UnitSetPropertyFixed(UnitLastCreated(), c_unitPropLifeMax, gv_trainList[lv_trainsToSpawn[lv_i]].lv_maxLife);
if ((UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngineFast") && (UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]) != "TarsonisEngine")) {
ActorLookAtStart(libNtve_gf_MainActorofUnit(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar]), "Chest", 100, 0.0, libNtve_gf_MainActorofUnit(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[(lv_currentCar - 1)]));
}