# Unit Attachment Point

Grammaru attachment point (attachment)
FlagsNative | Function

Returns the current position of a unit attachment point.

# Arguments

  • unit — Unit
  • string — Attachment

Returns — point

native point UnitGetAttachmentPoint(
	unit inUnit,
	string attachment,
);

Category: Unit / Properties

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

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