# Attach Model To Unit (Inherit Visibility)

Grammar — Attach model to attachPoint|Attach Point on unit (Inherit Visibility)
FlagsAction

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 — Unit
  • string [ gamelink::Model ] — Model
  • string [ preset::AttachPoints ] — AttachPoint

Returns — actor

actor libNtve_gf_AttachModelToUnitInheritVisibility(
	unit lp_unit,
	string lp_model,
	string lp_attachPoint,
);

Category: Actor / Create Actors

# Examples

# campaigns/swarm.sc2campaign

MapScript.galaxy

// 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

VoidCampaignLib.galaxy

// 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

LibMLBD.galaxy

// 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

LibNCMI.galaxy

// L4400
libNtve_gf_AttachModelToUnitInheritVisibility(lp_target, lv_model, lp_attachPoint)

# mods/missionpacks/novacampaign.sc2mod

LibNovC.galaxy

// L191
libNtve_gf_AttachModelToUnitInheritVisibility(lp_unit, lp_model, lp_attachPoint)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L3349
libNtve_gf_AttachModelToUnitInheritVisibility(gv_dominatedBuddyUnit, "BeaconAttack", "Ref_Origin")
// L3349
libNtve_gf_AttachModelToUnitInheritVisibility(gv_dominatedBuddyUnit, "BeaconAttack", "Ref_Origin")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L12151
libNtve_gf_AttachModelToUnitInheritVisibility(lp_target, lv_model, lp_attachPoint)

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L5498
libNtve_gf_AttachModelToUnitInheritVisibility(lp_unit, lp_model, lp_attachPoint)

# mods/warcoop/warcoopdata.sc2mod

WarCoopData.galaxy

// L1572
libNtve_gf_AttachModelToUnitInheritVisibility(lp_target, lv_model, lp_attachPoint)