# 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.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:772

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, gv_mapMusicTrack, c_soundtrackCueAny, c_soundtrackIndexAny, true);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Space01", c_soundtrackCueAny, c_soundtrackIndexAny, true);
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(964)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:773

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Space01", c_soundtrackCueAny, c_soundtrackIndexAny, true);
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(964)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:774

    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(964)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:775

    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(970)), "HydraEvoCavesLoopSound", "Center");

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:776

    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(970)), "HydraEvoCavesLoopSound", "Center");
    return true;

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2map/MapScript.galaxy:777

    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(970)), "HydraEvoCavesLoopSound", "Center");
    return true;
}

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:772

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryMusic, gv_mapMusicTrack, c_soundtrackCueAny, c_soundtrackIndexAny, true);
    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Space01", c_soundtrackCueAny, c_soundtrackIndexAny, true);
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(964)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:773

    SoundtrackPlay(PlayerGroupAll(), c_soundtrackCategoryAmbience, "Ambience_Space01", c_soundtrackCueAny, c_soundtrackIndexAny, true);
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(964)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:774

    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(964)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:775

    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(963)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(970)), "HydraEvoCavesLoopSound", "Center");

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:776

    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(966)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(970)), "HydraEvoCavesLoopSound", "Center");
    return true;

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionhydralisk.sc2mapMapScript.galaxy:777

    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(971)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(969)), "HydraEvoCavesLoopSound", "Center");
    libNtve_gf_AttachActorToActor(libNtve_gf_MainActorofUnit(UnitFromId(970)), "HydraEvoCavesLoopSound", "Center");
    return true;
}