# Set Facing

Grammar — SetFacing facing
FlagsFunction

Constructs and returns a SetFacing actor message based on the parameters. This message will set the 2D facing of an actor according to the Facing parameter. It will only work on actors that have bearings, such as model actors or doodad actors.

# Arguments

  • fixed — Facing

Returns — string<actormsg>

string libNtve_gf_SetFacing(fixed lp_facing);

Category: Actor / Message Constructors

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4165

        libNtve_gf_CreateModelAtPoint("TaurenFlyingOutHouse", PointFromId(1043));
        gv_armoryOutHourse = libNtve_gf_ActorLastCreated();
        ActorSend(gv_armoryOutHourse, libNtve_gf_SetFacing(90.0));
        ActorSend(gv_armoryOutHourse, libNtve_gf_SetHeight(0.4));
        Wait(15.0, c_timeReal);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4170

        libNtve_gf_CreateModelAtPoint("TaurenFlyingOutHouse", PointFromId(1044));
        gv_bridgeOutHourse = libNtve_gf_ActorLastCreated();
        ActorSend(gv_bridgeOutHourse, libNtve_gf_SetFacing(150.0));
        ActorSend(gv_bridgeOutHourse, libNtve_gf_SetHeight(4.0));
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4165

        libNtve_gf_CreateModelAtPoint("TaurenFlyingOutHouse", PointFromId(1043));
        gv_armoryOutHourse = libNtve_gf_ActorLastCreated();
        ActorSend(gv_armoryOutHourse, libNtve_gf_SetFacing(90.0));
        ActorSend(gv_armoryOutHourse, libNtve_gf_SetHeight(0.4));
        Wait(15.0, c_timeReal);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4170

        libNtve_gf_CreateModelAtPoint("TaurenFlyingOutHouse", PointFromId(1044));
        gv_bridgeOutHourse = libNtve_gf_ActorLastCreated();
        ActorSend(gv_bridgeOutHourse, libNtve_gf_SetFacing(150.0));
        ActorSend(gv_bridgeOutHourse, libNtve_gf_SetHeight(4.0));
    }

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zexpedition03.sc2map/MapScript.galaxy:8689

    libNtve_gf_CreateModelAtPoint("LasarraWarpIn", UnitGetPosition(gv_introLasarra));
    gv_warpInActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_warpInActor, libNtve_gf_SetFacing(405.0));
    SoundPlay(SoundLink("Event_Exp3_LassaraWarpInStart", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_introWarpSound1 = SoundLastPlayed();

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zexpedition03.sc2mapMapScript.galaxy:8689

    libNtve_gf_CreateModelAtPoint("LasarraWarpIn", UnitGetPosition(gv_introLasarra));
    gv_warpInActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_warpInActor, libNtve_gf_SetFacing(405.0));
    SoundPlay(SoundLink("Event_Exp3_LassaraWarpInStart", -1), PlayerGroupAll(), 100.0, 0.0);
    gv_introWarpSound1 = SoundLastPlayed();

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:443

    lv_infestation = libNtve_gf_ActorLastCreated();
    ActorSend(lv_infestation, libNtve_gf_SetScale(0.5, 0.5, 0.5, 0.0));
    ActorSend(lv_infestation, libNtve_gf_SetFacing(libNtve_gf_RandomAngle()));
    ActorSend(lv_infestation, libNtve_gf_SetHeight(0));
    while (!((UnitIsAlive(lp_bunker) == false))) {

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2mapMapScript.galaxy:443

    lv_infestation = libNtve_gf_ActorLastCreated();
    ActorSend(lv_infestation, libNtve_gf_SetScale(0.5, 0.5, 0.5, 0.0));
    ActorSend(lv_infestation, libNtve_gf_SetFacing(libNtve_gf_RandomAngle()));
    ActorSend(lv_infestation, libNtve_gf_SetHeight(0));
    while (!((UnitIsAlive(lp_bunker) == false))) {

mods/warcoop/warclassicsystem.sc2modbase.sc2data/TriggerLibs/WarClassicSystem.galaxy:1568


    ActorScopeMoveTo(ActorScopeFromActor(lv_aw), lv_at);
    ActorSend(lv_aw, libNtve_gf_SetFacing(UnitGetFacing(lv_u)));
    return true;
}