# Attach Actor To Actor

Grammar — Attach attachingActor|Actor to attachPoint|Attach Point on hostingActor|Actor
FlagsAction

Creates an actor attached to an actor at the specified attach point. Use “Last Created Actor” to get the attached actor.

# Arguments

  • actor — Hosting Actor
  • string [ gamelink::Actor ] — Attaching Actor
  • string [ preset::AttachPoints ] — AttachPoint

Returns — actor

actor libNtve_gf_AttachActorToActor(
	actor lp_hostingActor,
	string lp_attachingActor,
	string lp_attachPoint,
);

Category: Actor / Create Actors

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// L772
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(964)), "HydraEvoCavesLoopSound", "Center")
// L773
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center")
// L774
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center")
// L775
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center")
// L776
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center")
// L777
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(970)), "HydraEvoCavesLoopSound", "Center")
// L772
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(964)), "HydraEvoCavesLoopSound", "Center")
// L773
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center")
// L774
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center")
// L775
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center")
// L776
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center")
// L777
libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(970)), "HydraEvoCavesLoopSound", "Center")