# 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.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:759

    libNtve_gf_CreateActorAtPoint(lp_crashingDoodadType, RegionRandomPoint(RegionFromId(87)));
    lv_crashingDoodad = libNtve_gf_ActorLastCreated();
    libNtve_gf_MakeModelFaceAngle(lv_crashingDoodad, RandomFixed(135.0, 225.0));
    libNtve_gf_PlayAnimation(lv_crashingDoodad, c_animNameDefault, "Death", c_animFlagNonLooping, c_animTimeDefault);
    Wait(20.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5602

    libNtve_gf_CreateActorAtPoint("CharCrashingBarracks", PointFromId(1080));
    lv_crashBarracks01 = libNtve_gf_ActorLastCreated();
    libNtve_gf_MakeModelFaceAngle(lv_crashBarracks01, RandomFixed(135.0, 225.0));
    libNtve_gf_PlayAnimation(lv_crashBarracks01, c_animNameDefault, "Death", c_animFlagNonLooping, c_animTimeDefault);
    Wait(20.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5656

    auto57982A3B_val = RandomInt(0, 1);
    if (auto57982A3B_val == 0) {
        libNtve_gf_MakeModelFaceAngle(lv_crashBarracks02, RandomFixed(135.0, 225.0));
    }
    else if (auto57982A3B_val == 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5659

    }
    else if (auto57982A3B_val == 1) {
        libNtve_gf_MakeModelFaceAngle(lv_crashBarracks02, RandomFixed(315.0, 45.0));
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5716

    auto4FF0DC47_val = RandomInt(0, 1);
    if (auto4FF0DC47_val == 0) {
        libNtve_gf_MakeModelFaceAngle(lv_crashFactory01, RandomFixed(135.0, 225.0));
    }
    else if (auto4FF0DC47_val == 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5719

    }
    else if (auto4FF0DC47_val == 1) {
        libNtve_gf_MakeModelFaceAngle(lv_crashFactory01, RandomFixed(315.0, 45.0));
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5776

    auto96A5988F_val = RandomInt(0, 1);
    if (auto96A5988F_val == 0) {
        libNtve_gf_MakeModelFaceAngle(lv_crashFactory02, RandomFixed(135.0, 225.0));
    }
    else if (auto96A5988F_val == 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5779

    }
    else if (auto96A5988F_val == 1) {
        libNtve_gf_MakeModelFaceAngle(lv_crashFactory02, RandomFixed(315.0, 45.0));
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5836

    autoD1E67D9F_val = RandomInt(0, 1);
    if (autoD1E67D9F_val == 0) {
        libNtve_gf_MakeModelFaceAngle(lv_crashBattlecruiser01, RandomFixed(135.0, 225.0));
    }
    else if (autoD1E67D9F_val == 1) {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:5839

    }
    else if (autoD1E67D9F_val == 1) {
        libNtve_gf_MakeModelFaceAngle(lv_crashBattlecruiser01, RandomFixed(315.0, 45.0));
    }
    else {

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian03.sc2map/MapScript.galaxy:348

    libNtve_gf_CreateActorAtPoint(lp_crashingDoodadType, RegionRandomPoint(RegionFromId(30)));
    lv_crashingDoodad = libNtve_gf_ActorLastCreated();
    libNtve_gf_MakeModelFaceAngle(lv_crashingDoodad, libNtve_gf_RandomAngle());
    libNtve_gf_PlayAnimation(lv_crashingDoodad, c_animNameDefault, "Death", c_animFlagNonLooping, c_animTimeDefault);
    Wait(20.0, c_timeGame);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tzeratul02.sc2map/MapScript.galaxy:5379

    libNtve_gf_CreateModelAtPoint("HybridProtossFinalDeath", UnitGetPosition(gv_hybridPhysical));
    gv_actorHybridDeathEffect = libNtve_gf_ActorLastCreated();
    libNtve_gf_MakeModelFaceAngle(gv_actorHybridDeathEffect, UnitGetFacing(gv_hybridPhysical));
    UnitRemove(gv_hybridPhysical);
    libNtve_gf_KillModel(gv_actorHybridDeathEffect);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:794

    if ((UnitGroupCount(UnitGroup("SupplyDepot", c_playerAny, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup("SupplyDepotLowered", c_playerAny, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
        libNtve_gf_CreateModelAtPoint("SupplyDepotPlacement", RegionGetCenter(RegionFromId(1)));
        libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0);
        ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000");
        gv_chokeGhostDepot1 = libNtve_gf_ActorLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:802

    if ((UnitGroupCount(UnitGroup("SupplyDepot", c_playerAny, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup("SupplyDepotLowered", c_playerAny, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
        libNtve_gf_CreateModelAtPoint("SupplyDepotPlacement", RegionGetCenter(RegionFromId(2)));
        libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0);
        ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000");
        gv_chokeGhostDepot2 = libNtve_gf_ActorLastCreated();

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/economy.sc2map/MapScript.galaxy:810

    if ((UnitGroupCount(UnitGroup("Barracks", c_playerAny, RegionFromId(4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
        libNtve_gf_CreateModelAtPoint("BarracksPlacement", RegionGetCenter(RegionFromId(4)));
        libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0);
        ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000");
        gv_chokeGhostBarracks = libNtve_gf_ActorLastCreated();

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:759

    libNtve_gf_CreateActorAtPoint(lp_crashingDoodadType, RegionRandomPoint(RegionFromId(87)));
    lv_crashingDoodad = libNtve_gf_ActorLastCreated();
    libNtve_gf_MakeModelFaceAngle(lv_crashingDoodad, RandomFixed(135.0, 225.0));
    libNtve_gf_PlayAnimation(lv_crashingDoodad, c_animNameDefault, "Death", c_animFlagNonLooping, c_animTimeDefault);
    Wait(20.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5602

    libNtve_gf_CreateActorAtPoint("CharCrashingBarracks", PointFromId(1080));
    lv_crashBarracks01 = libNtve_gf_ActorLastCreated();
    libNtve_gf_MakeModelFaceAngle(lv_crashBarracks01, RandomFixed(135.0, 225.0));
    libNtve_gf_PlayAnimation(lv_crashBarracks01, c_animNameDefault, "Death", c_animFlagNonLooping, c_animTimeDefault);
    Wait(20.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5656

    auto57982A3B_val = RandomInt(0, 1);
    if (auto57982A3B_val == 0) {
        libNtve_gf_MakeModelFaceAngle(lv_crashBarracks02, RandomFixed(135.0, 225.0));
    }
    else if (auto57982A3B_val == 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5659

    }
    else if (auto57982A3B_val == 1) {
        libNtve_gf_MakeModelFaceAngle(lv_crashBarracks02, RandomFixed(315.0, 45.0));
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5716

    auto4FF0DC47_val = RandomInt(0, 1);
    if (auto4FF0DC47_val == 0) {
        libNtve_gf_MakeModelFaceAngle(lv_crashFactory01, RandomFixed(135.0, 225.0));
    }
    else if (auto4FF0DC47_val == 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5719

    }
    else if (auto4FF0DC47_val == 1) {
        libNtve_gf_MakeModelFaceAngle(lv_crashFactory01, RandomFixed(315.0, 45.0));
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5776

    auto96A5988F_val = RandomInt(0, 1);
    if (auto96A5988F_val == 0) {
        libNtve_gf_MakeModelFaceAngle(lv_crashFactory02, RandomFixed(135.0, 225.0));
    }
    else if (auto96A5988F_val == 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5779

    }
    else if (auto96A5988F_val == 1) {
        libNtve_gf_MakeModelFaceAngle(lv_crashFactory02, RandomFixed(315.0, 45.0));
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5836

    autoD1E67D9F_val = RandomInt(0, 1);
    if (autoD1E67D9F_val == 0) {
        libNtve_gf_MakeModelFaceAngle(lv_crashBattlecruiser01, RandomFixed(135.0, 225.0));
    }
    else if (autoD1E67D9F_val == 1) {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:5839

    }
    else if (autoD1E67D9F_val == 1) {
        libNtve_gf_MakeModelFaceAngle(lv_crashBattlecruiser01, RandomFixed(315.0, 45.0));
    }
    else {

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian03.sc2mapMapScript.galaxy:348

    libNtve_gf_CreateActorAtPoint(lp_crashingDoodadType, RegionRandomPoint(RegionFromId(30)));
    lv_crashingDoodad = libNtve_gf_ActorLastCreated();
    libNtve_gf_MakeModelFaceAngle(lv_crashingDoodad, libNtve_gf_RandomAngle());
    libNtve_gf_PlayAnimation(lv_crashingDoodad, c_animNameDefault, "Death", c_animFlagNonLooping, c_animTimeDefault);
    Wait(20.0, c_timeGame);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tzeratul02.sc2mapMapScript.galaxy:5379

    libNtve_gf_CreateModelAtPoint("HybridProtossFinalDeath", UnitGetPosition(gv_hybridPhysical));
    gv_actorHybridDeathEffect = libNtve_gf_ActorLastCreated();
    libNtve_gf_MakeModelFaceAngle(gv_actorHybridDeathEffect, UnitGetFacing(gv_hybridPhysical));
    UnitRemove(gv_hybridPhysical);
    libNtve_gf_KillModel(gv_actorHybridDeathEffect);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2mapMapScript.galaxy:794

    if ((UnitGroupCount(UnitGroup("SupplyDepot", c_playerAny, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup("SupplyDepotLowered", c_playerAny, RegionFromId(1), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
        libNtve_gf_CreateModelAtPoint("SupplyDepotPlacement", RegionGetCenter(RegionFromId(1)));
        libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0);
        ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000");
        gv_chokeGhostDepot1 = libNtve_gf_ActorLastCreated();

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2mapMapScript.galaxy:802

    if ((UnitGroupCount(UnitGroup("SupplyDepot", c_playerAny, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0) && (UnitGroupCount(UnitGroup("SupplyDepotLowered", c_playerAny, RegionFromId(2), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
        libNtve_gf_CreateModelAtPoint("SupplyDepotPlacement", RegionGetCenter(RegionFromId(2)));
        libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0);
        ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000");
        gv_chokeGhostDepot2 = libNtve_gf_ActorLastCreated();

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/economy.sc2mapMapScript.galaxy:810

    if ((UnitGroupCount(UnitGroup("Barracks", c_playerAny, RegionFromId(4), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0), c_unitCountAlive) == 0)) {
        libNtve_gf_CreateModelAtPoint("BarracksPlacement", RegionGetCenter(RegionFromId(4)));
        libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0);
        ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.300000");
        gv_chokeGhostBarracks = libNtve_gf_ActorLastCreated();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur06.sc2map/MapScript.galaxy:586

    for ( ; autoF130F3D0_var <= autoF130F3D0_ae; autoF130F3D0_var += 1 ) {
        libNtve_gf_CreateActorAtPoint("Aiur_CrashingDebris", PointWithOffsetPolar(CameraGetTarget(gv_pLAYER_01_USER), RandomFixed(5.0, 10.0), libNtve_gf_RandomAngle()));
        libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0);
        Wait(RandomFixed(0.25, 0.75), c_timeReal);
    }

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur06.sc2mapMapScript.galaxy:586

    for ( ; autoF130F3D0_var <= autoF130F3D0_ae; autoF130F3D0_var += 1 ) {
        libNtve_gf_CreateActorAtPoint("Aiur_CrashingDebris", PointWithOffsetPolar(CameraGetTarget(gv_pLAYER_01_USER), RandomFixed(5.0, 10.0), libNtve_gf_RandomAngle()));
        libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), 225.0);
        Wait(RandomFixed(0.25, 0.75), c_timeReal);
    }

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:422

    // Implementation
    libNtve_gf_CreateModelAtPoint(lp_model, lp_position);
    libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), PointGetFacing(lp_position));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:283

    // Implementation
    libNtve_gf_CreateActorAtPoint(lp_actor, lp_position);
    libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), PointGetFacing(lp_position));
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:305

    // Implementation
    libNtve_gf_CreateModelAtPoint(lp_model, lp_position);
    libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), PointGetFacing(lp_position));
}

mods/heroesbrawlmods/arenamodemods/templearena.stormmodbase.stormdata/LibAMCT.galaxy:939

        ActorSend(libNtve_gf_ActorLastCreated(), "Signal RangedSnake");
    }
    libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), UnitGetFacing(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_defenderArray[lp_defenderIndex]));
    libCore_gf_StoreActorForUnit(libAMCT_gv_aRMSkyTemple[lp_templeIndex].lv_defenderArray[lp_defenderIndex], 1, libNtve_gf_ActorLastCreated());
    ActorSend(libNtve_gf_ActorLastCreated(), "AnimBracketStart Statue Stand,Work,Start Stand,Work Stand,Work,End 0 0.000000");

mods/heroesmapmods/battlegroundmapmods/skytemple.stormmodbase.stormdata/LibMLCP.galaxy:848

        }
    }
    libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), UnitGetFacing(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_defenderArray[lp_defenderIndex]));
    libCore_gf_StoreActorForUnit(libMLCP_gv_mMSkyTemples[lp_templeIndex].lv_defenderArray[lp_defenderIndex], 1, libNtve_gf_ActorLastCreated());
    ActorSend(libNtve_gf_ActorLastCreated(), "AnimBracketStart Statue Stand,Work,Start Stand,Work Stand,Work,End 0 0.000000");

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:25362


    ActorCreate(ActorScopeFromUnit(lv_odin), "TychusOdinDeathTimeOut", null, null, null);
    libNtve_gf_MakeModelFaceAngle(libNtve_gf_ActorLastCreated(), lv_facing);
    UnitCreateEffectUnit(lv_odin, "TimedLifeFate", lv_odin);
    return true;