# Make Actor Look At Actor (Custom)

Grammar — Make source look at target using custom values (type: type, weight: weight, time: time)
FlagsNative | 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 — Source
  • string<preset::LookAtGroup> — Type
  • int — Weight
  • fixed — Time
  • actor — Target

Returns — void

native void ActorLookAtStart(
	actor s,
	string lookAt,
	int weight,
	fixed time,
	actor t,
);

Category: Actor / Look At

# Examples

campaigns/liberty.sc2campaignbase.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.sc2mapMapScript.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)]));
                }