# Attach Text Tag To Unit Attach Point
Grammar — Attach tag|Text Tag to unit at attachment point with offset (offsetX, offsetY).
Flags —Native
|Action
Attaches a text tag to one of the unit’s attachment points, this can also include an offset.
# Arguments
int
[ preset::TextTag ] — Tagunit
— Unitstring
[ preset::AttachPoints ] — Attachmentint
— OffsetXint
— OffsetY
Returns — void
native void TextTagAttachToUnitPoint(
int inTag,
unit inUnit,
string attachmentPoint,
int offsetX,
int offsetY,
);
# Related
Category: Text Tag / Basic
- [F] —
int
[ preset::TextTag ] — Create Text Tag — ( TextTagCreate ) - [F] —
int
[ preset::TextTag ] — Last Created Text Tag — ( TextTagLastCreated ) - [F] —
void
— Show/Hide Text Tag — ( TextTagShow ) - [F] —
bool
— Text Tag Is Visible — ( TextTagVisible ) - [F] —
void
— Pause/Unpause Text Tag — ( TextTagPause ) - [F] —
void
— Attach Text Tag To Unit — ( TextTagAttachToUnit ) - [F] —
void
— Attach Text Tag To Unit Attach Point — ( TextTagAttachToUnitPoint ) - [F] —
void
— Destroy Text Tag — ( TextTagDestroy ) - [F] —
void
— Set Position Of Text Tag — ( TextTagSetPosition ) - [F] —
void
— Set Velocity Of Text Tag — ( TextTagSetVelocity ) - [F] —
void
— Set Gravity Of Text Tag — ( TextTagSetGravity ) - [F] —
void
— Set Text Of Text Tag — ( TextTagSetText ) - [F] —
void
— Set Time Of Text Tag — ( TextTagSetTime )
# Examples
# campaigns/liberty.sc2campaign
// 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)