# Attach Actor To Actor
Grammar — Attach attachingActor|Actor to attachPoint|Attach Point on hostingActor|Actor
Flags —Action
Creates an actor attached to an actor at the specified attach point. Use “Last Created Actor” to get the attached actor.
# Arguments
actor
— Hosting Actorstring
<gamelink::Actor> — Attaching Actorstring
<preset::AttachPoints> — AttachPoint
Returns — actor
actor libNtve_gf_AttachActorToActor(
actor lp_hostingActor,
string lp_attachingActor,
string lp_attachPoint,
);
# Related
Category: Actor / Create Actors
- Attach Model To Unit —
actor
— libNtve_gf_AttachModelToUnit - Attach Model To Unit (Inherit Visibility) —
actor
— libNtve_gf_AttachModelToUnitInheritVisibility - Attach Model To Actor —
actor
— libNtve_gf_AttachModelToActor2 - Last Created Actor Scope —
actorscope
— libNtve_gf_ActorScopeLastCreated - Last Created Actor Scope by Message —
actorscope
— libNtve_gf_ActorScopeLastCreatedSend - Last Created Actor —
actor
— libNtve_gf_ActorLastCreated - Last Created Actor by Message —
actor
— libNtve_gf_ActorLastCreatedSend - Attach Actor To Unit —
actor
— libNtve_gf_AttachActorToUnit - Attach Actor To Actor —
actor
— libNtve_gf_AttachActorToActor - Create Actor Scope —
actorscope
— ActorScopeCreate - Create Actor —
actor
— ActorCreate - Create Actor Region —
actor
— ActorRegionCreate - Create Actor At Point —
actor
— libNtve_gf_CreateActorAtPoint - Create Model At Point —
actor
— libNtve_gf_CreateModelAtPoint - Create Model With Point Facing —
void
— libNtve_gf_CreateModelWithPointFacing - Actor Scope Move To —
void
— ActorScopeMoveTo
# Examples
campaigns/swarm.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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;
}