# Attach Text Tag To Unit Attach Point

Grammar — Attach tag|Text Tag to unit at attachment point with offset (offsetX, offsetY).
FlagsNative | Action

Attaches a text tag to one of the unit’s attachment points, this can also include an offset.

# Arguments

  • int [ preset::TextTag ] — Tag
  • unit — Unit
  • string [ preset::AttachPoints ] — Attachment
  • int — OffsetX
  • int — OffsetY

Returns — void

native void TextTagAttachToUnitPoint(
	int inTag,
	unit inUnit,
	string attachmentPoint,
	int offsetX,
	int offsetY,
);

Category: Text Tag / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2882
TextTagAttachToUnitPoint(TextTagLastCreated(), gv_jukeboxes[lp_jukeboxID].lv_box, "Ref_StatusBar", 127, -290)
// L2888
TextTagAttachToUnitPoint(TextTagLastCreated(), gv_jukeboxes[lp_jukeboxID].lv_box, "Ref_StatusBar", 25, -8)
// L9560
TextTagAttachToUnitPoint(TextTagLastCreated(), lp_unit, lp_attachmentPoint, lp_offsetX, lp_offsetY)
// L30082
TextTagAttachToUnitPoint(TextTagLastCreated(), gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "Ref_StatusBar", 0, -60)
// L2882
TextTagAttachToUnitPoint(TextTagLastCreated(), gv_jukeboxes[lp_jukeboxID].lv_box, "Ref_StatusBar", 127, -290)
// L2888
TextTagAttachToUnitPoint(TextTagLastCreated(), gv_jukeboxes[lp_jukeboxID].lv_box, "Ref_StatusBar", 25, -8)
// L9560
TextTagAttachToUnitPoint(TextTagLastCreated(), lp_unit, lp_attachmentPoint, lp_offsetX, lp_offsetY)
// L30082
TextTagAttachToUnitPoint(TextTagLastCreated(), gf_BriefingScreen(ge_RoomID_RoomBridge, ge_BriefingScreen_Center), "Ref_StatusBar", 0, -60)
// L1682
TextTagAttachToUnitPoint(TextTagLastCreated(), lp_targetUnit, "Ref_Center", 0, 0)
// L1682
TextTagAttachToUnitPoint(TextTagLastCreated(), lp_targetUnit, "Ref_Center", 0, 0)