# Unit Attachment Point
Grammar — u attachment point (attachment)
Flags —Native
|Function
Returns the current position of a unit attachment point.
# Arguments
unit
— Unitstring
— Attachment
Returns — point
native point UnitGetAttachmentPoint(
unit inUnit,
string attachment,
);
# Related
Category: Unit / Properties
- [F] —
string
[ gamelink::Unit ] — Unit Type Of Unit — ( UnitGetType ) - [F] —
int
— Unit Tag — ( UnitGetTag ) - [F] —
int
— Unit Seed — ( UnitGetSeed ) - [F] —
void
— Unit Property Changes — ( TriggerAddEventUnitProperty ) - [F] —
int
[ preset::Unit_Property ] — Triggering Unit Property — ( EventUnitProperty ) - [F] —
int
— Triggering Unit Property Change (Integer) — ( EventUnitPropertyChangeInt ) - [F] —
fixed
— Triggering Unit Property Change (Real) — ( EventUnitPropertyChangeFixed ) - [F] —
void
— Set Unit Property — ( UnitSetPropertyFixed ) - [F] —
void
— Set Unit State — ( UnitSetState ) - [F] —
void
— Set Unit Seed — ( UnitSetSeed ) - [F] —
void
— Reset Unit Seed — ( UnitResetSeed ) - [F] —
void
— Make Unit Invulnerable — ( libNtve_gf_MakeUnitInvulnerable ) - [F] —
void
— Make Unit Uncommandable — ( libNtve_gf_MakeUnitUncommandable ) - [F] —
fixed
— Unit Property — ( UnitGetPropertyFixed ) - [F] —
int
— Unit Property (Int) — ( UnitGetPropertyInt ) - [F] —
fixed
— Unit Type Property — ( UnitTypeGetProperty ) - [F] —
bool
— Unit Classification Check — ( UnitTestState ) - [F] —
bool
— Unit Type Classification Check — ( UnitTypeTestFlag ) - [F] —
bool
— Unit Type Attribute Check — ( UnitTypeTestAttribute ) - [F] —
bool
— Unit Targetable Check — ( UnitTestPlane ) - [F] —
bool
— Unit Is Invulnerable — ( libNtve_gf_UnitIsInvulnerable ) - [F] —
int
— Unit Kills — ( libNtve_gf_UnitGetPropertyKills ) - [F] —
int
— Unit Resources — ( libNtve_gf_UnitGetPropertyResources ) - [F] —
point
— Unit Attachment Point — ( UnitGetAttachmentPoint ) - [F] —
text
— Name Of Unit Type — ( UnitTypeGetName ) - [F] —
string
— Gender Code Of Unit Type — ( UnitTypeGetGenderCode ) - [F] —
int
— Unit Type Cost — ( UnitTypeGetCost ) - [F] —
bool
— Unit Type Is Affected By Upgrade — ( UnitTypeIsAffectedByUpgrade ) - [F] —
void
— Reset Movement Speed — ( UnitResetSpeed ) - [F] —
bool
— Unit Uses Mover — ( UnitMoverExists ) - [F] —
bool
— Unit Type Uses Mover — ( libNtve_gf_UnitMoverExists ) - [F] —
string
[ gamelink::Unit ] — Unit Type From String — ( UnitTypeFromString ) - [F] —
void
— Set Unit Color — ( UnitSetTeamColorIndex ) - [F] —
void
— Set Unit Info Button - Ability Tooltip — ( libNtve_gf_SetUnitInfoButtonAbilityTooltip ) - [F] —
void
— Set Unit Info Button - Button Tooltip — ( libNtve_gf_SetUnitInfoButtonButtonTooltip ) - [F] —
void
— Set Unit Info Button - Item Tooltip — ( libNtve_gf_SetUnitInfoButtonItemTooltip ) - [F] —
void
— Reset Unit Info Button - Ability Tooltip — ( libNtve_gf_ResetUnitInfoButtonAbilityTooltip ) - [F] —
void
— Reset Unit Info Button - Button Tooltip — ( libNtve_gf_ResetUnitInfoButtonButtonTooltip ) - [F] —
void
— Reset Unit Info Button - Item Tooltip — ( libNtve_gf_ResetUnitInfoButtonItemTooltip ) - [F] —
void
— Set Unit Command Button Tooltip — ( UnitSetInfoButtonTooltip ) - [F] —
void
— Reset Unit Command Button Tooltip — ( UnitClearInfoButtonTooltip ) - [F] —
void
— Set Unit Highlight Cursor — ( UnitSetCursor ) - [F] —
void
— Set Unit Ping Cursor — ( UnitSetPingCursor ) - [F] —
void
— Set Unit Info — ( UnitSetInfoText ) - [F] —
void
— Set Unit Info Text — ( UnitSetInfoText2 ) - [F] —
void
— Set Unit Info Tip — ( UnitSetInfoTip ) - [F] —
void
— Set Unit Info SubTip — ( UnitSetInfoSubTip ) - [F] —
void
— Clear Unit Info — ( UnitClearInfoText ) - [F] —
void
— Set Unit Status Bar State (Deprecated) — ( UnitForceStatusBar ) - [F] —
void
— Show Unit Status Bar — ( UnitStatusBarOverride ) - [F] —
void
— Hide Unit Status Bar — ( UnitStatusBarClearOverride ) - [F] —
void
— Set Unit Scale — ( UnitSetScale ) - [F] —
void
— Set Unit Model Variation — ( libNtve_gf_UnitSetVariation ) - [F] —
void
— Change Unit Height — ( UnitSetHeight ) - [F] —
fixed
— Height Of Unit — ( UnitGetHeight ) - [F] —
void
— Change Unit Damage — ( libNtve_gf_ChangeUnitDamage ) - [F] —
unit
— Add On Child — ( UnitAddOnChild ) - [F] —
unit
— Add On Parent — ( UnitAddOnParent )
# Examples
# campaigns/liberty.sc2campaign
// L5183
UnitGetAttachmentPoint(lv_room, lv_attachment)
// L7421
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Firebat")
// L7424
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Marauder")
// L7427
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Spidermine")
// L7430
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_SiegeTank")
// L7433
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Ghost")
// L7436
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Dropship")
// L7439
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Viking")
// L7442
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Banshee")
// L7445
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Firebat")
// L5183
UnitGetAttachmentPoint(lv_room, lv_attachment)
// L7421
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Firebat")
// L7424
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Marauder")
// L7427
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Spidermine")
// L7430
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_SiegeTank")
// L7433
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Ghost")
// L7436
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Dropship")
// L7439
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Viking")
// L7442
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Banshee")
// L7445
UnitGetAttachmentPoint(gv_armoryRoom, "Pos_Firebat")
// L364
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 02")
// L367
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L370
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation")
// L371
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L372
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L373
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L163
UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation")
// L165
UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation")
// L166
UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation 01")
// L167
UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation 01")
// L371
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation")
// L372
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 09")
// L374
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L377
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 02")
// L379
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L380
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L149
UnitGetAttachmentPoint(gv_uNITSETDusk00, "Pos_SetLocation")
// L151
UnitGetAttachmentPoint(gv_uNITSETDusk00, "Pos_SetLocation")
// L307
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L308
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L309
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L310
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L311
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 09")
// L361
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L363
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L364
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L365
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L366
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 09")
// L405
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L407
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L408
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L409
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L410
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 09")
// L143
UnitGetAttachmentPoint(gv_uNITSETSpace02, "Pos_SetLocation")
// L145
UnitGetAttachmentPoint(gv_uNITSETSpace02, "Pos_SetLocation")
// L315
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L316
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L317
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L318
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L319
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 09")
// L139
UnitGetAttachmentPoint(gv_uNITSETZerus00, "Pos_SetLocation")
// L141
UnitGetAttachmentPoint(gv_uNITSETZerus00, "Pos_SetLocation")
// L142
UnitGetAttachmentPoint(gv_uNITSETZerus00, "Pos_SetLocation")
// L144
UnitGetAttachmentPoint(gv_uNITSETZerus00, "Pos_SetLocation")
// L341
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L342
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L343
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L344
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L364
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 02")
// L367
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L370
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation")
// L371
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L372
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L373
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L163
UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation")
// L165
UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation")
// L166
UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation 01")
// L167
UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation 01")
// L371
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation")
// L372
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 09")
// L374
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L377
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 02")
// L379
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L380
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L149
UnitGetAttachmentPoint(gv_uNITSETDusk00, "Pos_SetLocation")
// L151
UnitGetAttachmentPoint(gv_uNITSETDusk00, "Pos_SetLocation")
// L307
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L308
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L309
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L310
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L311
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 09")
// L361
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L363
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L364
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L365
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")
// L366
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 09")
// L405
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 04")
// L407
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 03")
// L408
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 05")
// L409
UnitGetAttachmentPoint(gv_uNITSETLeviathan00, "Pos_SetLocation 06")