# 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
- [F] —
actor
— Attach Model To Actor (Deprecated) — ( libNtve_gf_AttachModelToActor ) - [F] —
actorscope
— Last Created Actor Scope (Deprecated) — ( libNtve_gf_LastCreatedActorScope ) - [F] —
actor
— Last Created Actor (Deprecated) — ( libNtve_gf_LastCreatedActor )
# Examples
# campaigns/swarm.sc2campaign
// L11530
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(1717)), "KerriganGhostLab", "Ref_Hardpoint")
// L11533
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(1717)), "RaynorLab", "Ref_Hardpoint 01")
// L11550
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(47)), "KerriganGhostLab", "Ref_Hardpoint")
// L11553
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(47)), "RaynorLab", "Ref_Hardpoint 01")
// L8401
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(224)), "InfestedKerrigan", "Ref_Origin")
// L11530
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(1717)), "KerriganGhostLab", "Ref_Hardpoint")
// L11533
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(1717)), "RaynorLab", "Ref_Hardpoint 01")
// L11550
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(47)), "KerriganGhostLab", "Ref_Hardpoint")
// L11553
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(47)), "RaynorLab", "Ref_Hardpoint 01")
// L8401
libNtve_gf_AttachModelToActor(ActorFromDoodad(DoodadFromId(224)), "InfestedKerrigan", "Ref_Origin")