# Attach Model To Unit (Inherit Visibility)
Grammar — Attach model to attachPoint|Attach Point on unit (Inherit Visibility)
Flags —Action
Creates a generic actor with the specified model attached to a unit at the specified attach point. Use “Last Created Actor” to get the actor. If the unit is hidden, the attached model will also be hidden.
# Arguments
unit
— Unitstring
[ gamelink::Model ] — Modelstring
[ preset::AttachPoints ] — AttachPoint
Returns — actor
actor libNtve_gf_AttachModelToUnitInheritVisibility(
unit lp_unit,
string lp_model,
string lp_attachPoint,
);
# Related
Category: Actor / Create Actors
- [F] —
actor
— Attach Model To Unit — ( libNtve_gf_AttachModelToUnit ) - [F] —
actor
— Attach Model To Unit (Inherit Visibility) — ( libNtve_gf_AttachModelToUnitInheritVisibility ) - [F] —
actor
— Attach Model To Actor — ( libNtve_gf_AttachModelToActor2 ) - [F] —
actorscope
— Last Created Actor Scope — ( libNtve_gf_ActorScopeLastCreated ) - [F] —
actorscope
— Last Created Actor Scope by Message — ( libNtve_gf_ActorScopeLastCreatedSend ) - [F] —
actor
— Last Created Actor — ( libNtve_gf_ActorLastCreated ) - [F] —
actor
— Last Created Actor by Message — ( libNtve_gf_ActorLastCreatedSend ) - [F] —
actor
— Attach Actor To Unit — ( libNtve_gf_AttachActorToUnit ) - [F] —
actor
— Attach Actor To Actor — ( libNtve_gf_AttachActorToActor ) - [F] —
actorscope
— Create Actor Scope — ( ActorScopeCreate ) - [F] —
actor
— Create Actor — ( ActorCreate ) - [F] —
actor
— Create Actor Region — ( ActorRegionCreate ) - [F] —
actor
— Create Actor At Point — ( libNtve_gf_CreateActorAtPoint ) - [F] —
actor
— Create Model At Point — ( libNtve_gf_CreateModelAtPoint ) - [F] —
void
— Create Model With Point Facing — ( libNtve_gf_CreateModelWithPointFacing ) - [F] —
void
— Actor Scope Move To — ( ActorScopeMoveTo )
# Examples
# campaigns/swarm.sc2campaign
// L4808
libNtve_gf_AttachModelToUnitInheritVisibility(gv_malash, "ProtossGenericWarpOut", "Ref_Origin")
// L4808
libNtve_gf_AttachModelToUnitInheritVisibility(gv_malash, "ProtossGenericWarpOut", "Ref_Origin")
// L2156
libNtve_gf_AttachModelToUnitInheritVisibility(lv_taurenSpaceMarine, "TalkIcon", "Ref_Overhead")
// L827
libNtve_gf_AttachModelToUnitInheritVisibility(lp_warpOutUnit, "ProtossGenericWarpInOut", "Ref_Origin")
// L2156
libNtve_gf_AttachModelToUnitInheritVisibility(lv_taurenSpaceMarine, "TalkIcon", "Ref_Overhead")
// L827
libNtve_gf_AttachModelToUnitInheritVisibility(lp_warpOutUnit, "ProtossGenericWarpInOut", "Ref_Origin")
# campaigns/voidstory.sc2campaign
// L8389
libNtve_gf_AttachModelToUnitInheritVisibility(lp_unit, lp_model, lp_attachPoint)
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L4306
libNtve_gf_AttachModelToUnitInheritVisibility(lp_target, lv_model, lp_attachPoint)
# mods/heroesmapmods/battlegroundmapmods/battlefieldofeternity.stormmod
// L510
libNtve_gf_AttachModelToUnitInheritVisibility(libMLBD_gv_mMBOEBosses[lp_team], "HitTestFuzzy_Cyliner", "Ref_Origin")
// L1280
libNtve_gf_AttachModelToUnitInheritVisibility(libMLBD_gv_mMBOEBossesLaning, "HitTestFuzzy_Cyliner", "Ref_Origin")
# mods/missionpacks/novacampaign.sc2mod
// L4400
libNtve_gf_AttachModelToUnitInheritVisibility(lp_target, lv_model, lp_attachPoint)
# mods/missionpacks/novacampaign.sc2mod
// L191
libNtve_gf_AttachModelToUnitInheritVisibility(lp_unit, lp_model, lp_attachPoint)
# mods/novastoryassets.sc2mod
// L3349
libNtve_gf_AttachModelToUnitInheritVisibility(gv_dominatedBuddyUnit, "BeaconAttack", "Ref_Origin")
// L3349
libNtve_gf_AttachModelToUnitInheritVisibility(gv_dominatedBuddyUnit, "BeaconAttack", "Ref_Origin")
# mods/starcoop/starcoop.sc2mod
// L12151
libNtve_gf_AttachModelToUnitInheritVisibility(lp_target, lv_model, lp_attachPoint)
# mods/starcoop/starcoop.sc2mod
// L5498
libNtve_gf_AttachModelToUnitInheritVisibility(lp_unit, lp_model, lp_attachPoint)
# mods/warcoop/warcoopdata.sc2mod
// L1572
libNtve_gf_AttachModelToUnitInheritVisibility(lp_target, lv_model, lp_attachPoint)