# Attach Model To Actor (Deprecated)

Grammar — Attach model to attachPoint on actor
FlagsAction | Hidden

Creates a generic actor with the specified model attached to an actor at the specified attach point. Use “Last Created Actor” to get the attached model’s actor.

# Arguments

  • actor — Actor
  • string<gamelink::Model> — Model
  • string<preset::AttachPoints> — AttachPoint

Returns — actor

actor libNtve_gf_AttachModelToActor(
	actor lp_actor,
	string lp_model,
	string lp_attachPoint,
);

Category: Actor / Deprecated

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11530


    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(92), 0.0, -1, 10.0, true);
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(1717)), "KerriganGhostLab", "Ref_Hardpoint");
    gv_midKerriganActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midKerriganActor, "SetTeamColor 255,128,0 255,128,0");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11533

    gv_midKerriganActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midKerriganActor, "SetTeamColor 255,128,0 255,128,0");
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(1717)), "RaynorLab", "Ref_Hardpoint 01");
    gv_midRaynorActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midRaynorActor, "SetTeamColor 0,0,255 0,0,255");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11550

    libNtve_gf_KillModel(gv_midKerriganActor);
    libNtve_gf_KillModel(gv_midRaynorActor);
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(47)), "KerriganGhostLab", "Ref_Hardpoint");
    gv_midKerriganActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midKerriganActor, "SetTeamColor 255,128,0 255,128,0");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zlab02.sc2map/MapScript.galaxy:11553

    gv_midKerriganActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midKerriganActor, "SetTeamColor 255,128,0 255,128,0");
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(47)), "RaynorLab", "Ref_Hardpoint 01");
    gv_midRaynorActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midRaynorActor, "SetTeamColor 0,0,255 0,0,255");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace02.sc2map/MapScript.galaxy:8401

    }
    TriggerExecute(gt_MidBridgeControllers, true, false);
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(224)), "InfestedKerrigan", "Ref_Origin");
    TriggerExecute(gt_MidMusic, true, false);
    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:11530


    CameraApplyInfo(gv_pLAYER_01_USER, CameraInfoFromId(92), 0.0, -1, 10.0, true);
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(1717)), "KerriganGhostLab", "Ref_Hardpoint");
    gv_midKerriganActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midKerriganActor, "SetTeamColor 255,128,0 255,128,0");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:11533

    gv_midKerriganActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midKerriganActor, "SetTeamColor 255,128,0 255,128,0");
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(1717)), "RaynorLab", "Ref_Hardpoint 01");
    gv_midRaynorActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midRaynorActor, "SetTeamColor 0,0,255 0,0,255");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:11550

    libNtve_gf_KillModel(gv_midKerriganActor);
    libNtve_gf_KillModel(gv_midRaynorActor);
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(47)), "KerriganGhostLab", "Ref_Hardpoint");
    gv_midKerriganActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midKerriganActor, "SetTeamColor 255,128,0 255,128,0");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab02.sc2mapMapScript.galaxy:11553

    gv_midKerriganActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midKerriganActor, "SetTeamColor 255,128,0 255,128,0");
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(47)), "RaynorLab", "Ref_Hardpoint 01");
    gv_midRaynorActor = libNtve_gf_ActorLastCreated();
    ActorSend(gv_midRaynorActor, "SetTeamColor 0,0,255 0,0,255");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace02.sc2mapMapScript.galaxy:8401

    }
    TriggerExecute(gt_MidBridgeControllers, true, false);
    libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(224)), "InfestedKerrigan", "Ref_Origin");
    TriggerExecute(gt_MidMusic, true, false);
    TriggerSkippableBegin(PlayerGroupAll(), 0, null, true, false);