# Make Actor Face Angle

Grammar — Make model face angle
FlagsAction

Causes an actor to face the specified angle.

# Arguments

  • actor — Actor
  • fixed — Angle

Returns — void

void libNtve_gf_MakeModelFaceAngle(
	actor lp_model,
	fixed lp_angle,
);

Category: Actor / Utility

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L759
libNtve_gf_MakeModelFaceAngle(lv_crashingDoodad, RandomFixed(135.0, 225.0))
// L5586
libNtve_gf_MakeModelFaceAngle(lv_crashBarracks01, RandomFixed(135.0, 225.0))
// L5640
libNtve_gf_MakeModelFaceAngle(lv_crashBarracks02, RandomFixed(135.0, 225.0))
// L5643
libNtve_gf_MakeModelFaceAngle(lv_crashBarracks02, RandomFixed(315.0, 45.0))
// L5700
libNtve_gf_MakeModelFaceAngle(lv_crashFactory01, RandomFixed(135.0, 225.0))
// L5703
libNtve_gf_MakeModelFaceAngle(lv_crashFactory01, RandomFixed(315.0, 45.0))
// L5760
libNtve_gf_MakeModelFaceAngle(lv_crashFactory02, RandomFixed(135.0, 225.0))
// L5763
libNtve_gf_MakeModelFaceAngle(lv_crashFactory02, RandomFixed(315.0, 45.0))
// L5820
libNtve_gf_MakeModelFaceAngle(lv_crashBattlecruiser01, RandomFixed(135.0, 225.0))
// L5823
libNtve_gf_MakeModelFaceAngle(lv_crashBattlecruiser01, RandomFixed(315.0, 45.0))
// L348
libNtve_gf_MakeModelFaceAngle(lv_crashingDoodad, libNtve_gf_RandomAngle())
// L5379
libNtve_gf_MakeModelFaceAngle(gv_actorHybridDeathEffect, UnitGetFacing(gv_hybridPhysical))
// L794
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0)
// L802
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0)
// L810
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0)
// L759
libNtve_gf_MakeModelFaceAngle(lv_crashingDoodad, RandomFixed(135.0, 225.0))
// L5586
libNtve_gf_MakeModelFaceAngle(lv_crashBarracks01, RandomFixed(135.0, 225.0))
// L5640
libNtve_gf_MakeModelFaceAngle(lv_crashBarracks02, RandomFixed(135.0, 225.0))
// L5643
libNtve_gf_MakeModelFaceAngle(lv_crashBarracks02, RandomFixed(315.0, 45.0))
// L5700
libNtve_gf_MakeModelFaceAngle(lv_crashFactory01, RandomFixed(135.0, 225.0))
// L5703
libNtve_gf_MakeModelFaceAngle(lv_crashFactory01, RandomFixed(315.0, 45.0))
// L5760
libNtve_gf_MakeModelFaceAngle(lv_crashFactory02, RandomFixed(135.0, 225.0))
// L5763
libNtve_gf_MakeModelFaceAngle(lv_crashFactory02, RandomFixed(315.0, 45.0))
// L5820
libNtve_gf_MakeModelFaceAngle(lv_crashBattlecruiser01, RandomFixed(135.0, 225.0))
// L5823
libNtve_gf_MakeModelFaceAngle(lv_crashBattlecruiser01, RandomFixed(315.0, 45.0))
// L348
libNtve_gf_MakeModelFaceAngle(lv_crashingDoodad, libNtve_gf_RandomAngle())
// L5379
libNtve_gf_MakeModelFaceAngle(gv_actorHybridDeathEffect, UnitGetFacing(gv_hybridPhysical))
// L794
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0)
// L802
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0)
// L810
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0)
// L586
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0)
// L586
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0)

# mods/core.sc2mod

NativeLib.galaxy

// L422
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), PointGetFacing(lp_position))
// L283
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), PointGetFacing(lp_position))
// L305
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), PointGetFacing(lp_position))

# mods/heroesbrawlmods/arenamodemods/templearena.stormmod

LibAMCT.galaxy

// L939
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), UnitGetFacing(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_defenderArray[lp_defenderIndex]))

# mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod

LibMLCP.galaxy

// L848
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), UnitGetFacing(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_defenderArray[lp_defenderIndex]))

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L25286
libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), lv_facing)