# Create Model With Point Facing

Grammar — Create actor model model|Model at position|Point using point facing
FlagsAction

Creates a generic actor with the specified model at the specified point and sets its facing to match the point. Running the “Last Created Actor” function immediately after this action will return the actor created by this action.

# Arguments

  • string<gamelink::Model> — Model
  • point — Point

Returns — void

void libNtve_gf_CreateModelWithPointFacing(
	string lp_model,
	point lp_position,
);

Category: Actor / Create Actors

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:6033

    UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/4CC29619"), null, PointFromId(15));
    if ((libHots_gf_DifficultyValueSwarmBoolean(true, false, false) == true) && (gv_arrowShown01 == false)) {
        libNtve_gf_CreateModelWithPointFacing("GuideArrow", PointFromId(147));
        gv_arrow01 = libNtve_gf_ActorLastCreated();
        ActorSend(gv_arrow01, "SetTeamColor 255,0,0 0,0,0");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:7947

    TriggerExecute(gt_ObjectiveSaveZerglingsCreate, true, false);
    if ((libHots_gf_DifficultyValueSwarmBoolean(true, false, false) == true) && (gv_platform2Entered == false)) {
        libNtve_gf_CreateModelWithPointFacing("GuideArrow", PointFromId(964));
        gv_arrow02 = libNtve_gf_ActorLastCreated();
        ActorSend(gv_arrow02, "SetTeamColor 255,0,0 0,0,0");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:1395

    VisRevealArea(gv_pLAYER_01_USER, RegionFromId(61), 8.0, false);
    Wait(1.0, c_timeAI);
    libNtve_gf_CreateModelWithPointFacing("MoebiusLabDoorsWideAirlockWind", PointFromId(1679));
    lv_airlockActor = libNtve_gf_ActorLastCreated();
    ActorSend(lv_airlockActor, "AnimPlay Spell Stand,Unpowered,Start");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:2737

    UnitIssueOrder(UnitFromId(1927), Order(AbilityCommand("MoebiusLabDoorsWideRightLowered", 0)), c_orderQueueReplace);
    Wait(1.0, c_timeAI);
    libNtve_gf_CreateModelWithPointFacing("MoebiusLabDoorsWideAirlockWind", PointFromId(2084));
    lv_airlockActor = libNtve_gf_ActorLastCreated();
    ActorSend(lv_airlockActor, "AnimPlay Spell Stand,Unpowered,Start");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2map/MapScript.galaxy:5792

    TransmissionWait(TransmissionLastSent(), 0.0);
    libNtve_gf_ChangeUnitDamage(UnitFromId(75), libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_Full);
    libNtve_gf_CreateModelWithPointFacing("MoebiusLabDoorsWideAirlockWind", PointFromId(1772));
    gv_introAirlockModel = libNtve_gf_ActorLastCreated();
    ActorSend(gv_introAirlockModel, "AnimPlay Spell Stand,Unpowered,Start");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:6033

    UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/4CC29619"), null, PointFromId(15));
    if ((libHots_gf_DifficultyValueSwarmBoolean(true, false, false) == true) && (gv_arrowShown01 == false)) {
        libNtve_gf_CreateModelWithPointFacing("GuideArrow", PointFromId(147));
        gv_arrow01 = libNtve_gf_ActorLastCreated();
        ActorSend(gv_arrow01, "SetTeamColor 255,0,0 0,0,0");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2mapMapScript.galaxy:7947

    TriggerExecute(gt_ObjectiveSaveZerglingsCreate, true, false);
    if ((libHots_gf_DifficultyValueSwarmBoolean(true, false, false) == true) && (gv_platform2Entered == false)) {
        libNtve_gf_CreateModelWithPointFacing("GuideArrow", PointFromId(964));
        gv_arrow02 = libNtve_gf_ActorLastCreated();
        ActorSend(gv_arrow02, "SetTeamColor 255,0,0 0,0,0");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:1395

    VisRevealArea(gv_pLAYER_01_USER, RegionFromId(61), 8.0, false);
    Wait(1.0, c_timeAI);
    libNtve_gf_CreateModelWithPointFacing("MoebiusLabDoorsWideAirlockWind", PointFromId(1679));
    lv_airlockActor = libNtve_gf_ActorLastCreated();
    ActorSend(lv_airlockActor, "AnimPlay Spell Stand,Unpowered,Start");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:2737

    UnitIssueOrder(UnitFromId(1927), Order(AbilityCommand("MoebiusLabDoorsWideRightLowered", 0)), c_orderQueueReplace);
    Wait(1.0, c_timeAI);
    libNtve_gf_CreateModelWithPointFacing("MoebiusLabDoorsWideAirlockWind", PointFromId(2084));
    lv_airlockActor = libNtve_gf_ActorLastCreated();
    ActorSend(lv_airlockActor, "AnimPlay Spell Stand,Unpowered,Start");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/voidprologue/voidprologue01.sc2mapMapScript.galaxy:5792

    TransmissionWait(TransmissionLastSent(), 0.0);
    libNtve_gf_ChangeUnitDamage(UnitFromId(75), libNtve_ge_UnitDamageTakenDealt_Damage_Take, libNtve_ge_UnitDamageChangeOption_Full);
    libNtve_gf_CreateModelWithPointFacing("MoebiusLabDoorsWideAirlockWind", PointFromId(1772));
    gv_introAirlockModel = libNtve_gf_ActorLastCreated();
    ActorSend(gv_introAirlockModel, "AnimPlay Spell Stand,Unpowered,Start");

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:478

    PointSetFacing(lv_hybridPoint, UnitGetFacing(lv_hybrid));
    Wait(0.0625, c_timeGame);
    libNtve_gf_CreateModelWithPointFacing("Aiur_City_HybridWarp", lv_hybridPoint);
    lv_warpEffect = libNtve_gf_ActorLastCreated();
    libNtve_gf_PlayAnimation(lv_warpEffect, c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:509

    PointSetFacing(lv_hybridPoint, UnitGetFacing(lv_hybrid));
    Wait(0.0625, c_timeGame);
    libNtve_gf_CreateModelWithPointFacing("Aiur_City_HybridWarp", lv_hybridPoint);
    lv_warpEffect = libNtve_gf_ActorLastCreated();
    libNtve_gf_PlayAnimation(lv_warpEffect, c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:2268

    }

    libNtve_gf_CreateModelWithPointFacing("HybridDominatorVoidDeath", lv_hybridCellPoint);
    lv_hybridDeathModel = libNtve_gf_ActorLastCreated();
    ActorSend(lv_hybridDeathModel, "SetHeight 2.250000");

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2mapMapScript.galaxy:478

    PointSetFacing(lv_hybridPoint, UnitGetFacing(lv_hybrid));
    Wait(0.0625, c_timeGame);
    libNtve_gf_CreateModelWithPointFacing("Aiur_City_HybridWarp", lv_hybridPoint);
    lv_warpEffect = libNtve_gf_ActorLastCreated();
    libNtve_gf_PlayAnimation(lv_warpEffect, c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2mapMapScript.galaxy:509

    PointSetFacing(lv_hybridPoint, UnitGetFacing(lv_hybrid));
    Wait(0.0625, c_timeGame);
    libNtve_gf_CreateModelWithPointFacing("Aiur_City_HybridWarp", lv_hybridPoint);
    lv_warpEffect = libNtve_gf_ActorLastCreated();
    libNtve_gf_PlayAnimation(lv_warpEffect, c_animNameDefault, "Birth", c_animFlagPlayForever | c_animFlagNonLooping, c_animTimeDefault);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2mapMapScript.galaxy:2268

    }

    libNtve_gf_CreateModelWithPointFacing("HybridDominatorVoidDeath", lv_hybridCellPoint);
    lv_hybridDeathModel = libNtve_gf_ActorLastCreated();
    ActorSend(lv_hybridDeathModel, "SetHeight 2.250000");

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1020

            PointSetFacing(lv_departPoint, AngleBetweenPoints(lv_departPoint, lv_teleportPoint));
            PointSetHeight(lv_departPoint, UnitGetHeight(lp_damagedUnit));
            libNtve_gf_CreateModelWithPointFacing("DarkTemplarChampionBlinkOut", lv_departPoint);
            ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.250000");
            UnitSetPosition(lp_damagedUnit, lv_teleportPoint, false);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMU.galaxy:1031

            PointSetFacing(lv_teleportPoint, AngleBetweenPoints(lv_teleportPoint, lv_departPoint));
            PointSetHeight(lv_teleportPoint, UnitGetHeight(lp_damagedUnit));
            libNtve_gf_CreateModelWithPointFacing("DarkTemplarChampionBlinkIn", lv_teleportPoint);
            ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.250000");
            Wait(0.25, c_timeGame);