# Attach Model To Actor (Deprecated)
Grammar — Attach model to attachPoint on actor
Flags —Action
|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
— Actorstring
<gamelink::Model> — Modelstring
<preset::AttachPoints> — AttachPoint
Returns — actor
actor libNtve_gf_AttachModelToActor(
actor lp_actor,
string lp_model,
string lp_attachPoint,
);
# Related
Category: Actor / Deprecated
- Attach Model To Actor (Deprecated) —
actor
— libNtve_gf_AttachModelToActor - Last Created Actor Scope (Deprecated) —
actorscope
— libNtve_gf_LastCreatedActorScope - Last Created Actor (Deprecated) —
actor
— libNtve_gf_LastCreatedActor
# Examples
campaigns/swarm.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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);