# 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.sc2mod

NativeLib.galaxy

// L1214
ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lp_unit), lp_type, lp_lookAtTarget)
// L1110
ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lp_unit), lp_type, lp_lookAtTarget)

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L5636
ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lv_siegeGiant), "MedHeadOnly", libNtve_gf_MainActorofUnit(lv_target))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L16643
ActorLookAtTypeStart(libNtve_gf_MainActorofUnit(lv_dehaka), "InstantHeadOnly", libNtve_gf_MainActorofUnit(lv_missile))