# Set Position Of Text Tag
Grammar — Set the position of tag|Text Tag to point|Position and height offset heightOffset
Flags —Native
|Action
Sets the position of the text tag from a point specified.
# Arguments
int
<preset::TextTag> — Tagpoint
— Pointfixed
— Height Offset
Returns — void
native void TextTagSetPosition(
int inTag,
point inPoint,
fixed inHeightOffset,
);
# Related
Category: Text Tag / Basic
- Create Text Tag —
int
<preset::TextTag> — TextTagCreate - Last Created Text Tag —
int
<preset::TextTag> — TextTagLastCreated - Show/Hide Text Tag —
void
— TextTagShow - Text Tag Is Visible —
bool
— TextTagVisible - Pause/Unpause Text Tag —
void
— TextTagPause - Attach Text Tag To Unit —
void
— TextTagAttachToUnit - Attach Text Tag To Unit Attach Point —
void
— TextTagAttachToUnitPoint - Destroy Text Tag —
void
— TextTagDestroy - Set Position Of Text Tag —
void
— TextTagSetPosition - Set Velocity Of Text Tag —
void
— TextTagSetVelocity - Set Gravity Of Text Tag —
void
— TextTagSetGravity - Set Text Of Text Tag —
void
— TextTagSetText - Set Time Of Text Tag —
void
— TextTagSetTime
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/ttosh03a.sc2map/MapScript.galaxy:4161
TextTagCreate(StringExternal("Param/Value/52AB2985"), 22, UnitGetPosition(UnitFromId(1887)), 2.0, true, false, PlayerGroupAll());
gv_textTagMindBlast = TextTagLastCreated();
TextTagSetPosition(TextTagLastCreated(), PointWithOffset(PointFromId(1158), 0.0, 0.0), 1.0);
TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 100.00, 0.00));
SoundPlayAtPoint(SoundLink("UI_TipSelect", -1), PlayerGroupAll(), libNtve_gf_CenterOfUnitGroup(lv_initialMarineGroup), 0.0, 100.0, 0.0);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttosh03a.sc2map — MapScript.galaxy:4161
TextTagCreate(StringExternal("Param/Value/52AB2985"), 22, UnitGetPosition(UnitFromId(1887)), 2.0, true, false, PlayerGroupAll());
gv_textTagMindBlast = TextTagLastCreated();
TextTagSetPosition(TextTagLastCreated(), PointWithOffset(PointFromId(1158), 0.0, 0.0), 1.0);
TextTagSetColor(TextTagLastCreated(), c_textTagColorText, Color(0.00, 100.00, 0.00));
SoundPlayAtPoint(SoundLink("UI_TipSelect", -1), PlayerGroupAll(), libNtve_gf_CenterOfUnitGroup(lv_initialMarineGroup), 0.0, 100.0, 0.0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zchar02.sc2map/MapScript.galaxy:4623
gv_introReticle = libNtve_gf_ActorLastCreated();
gv_introTextTag = TextTagLastCreated();
TextTagSetPosition(TextTagLastCreated(), PointFromId(112), 1.0);
SoundPlay(SoundLink("UI_BriefingUnitSelect", -1), PlayerGroupAll(), 100.0, 0.0);
TransmissionWait(TransmissionLastSent(), 0.0);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map/MapScript.galaxy:1719
CameraPan(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(241)), 2.0, -1, 10, true);
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergEnemy, libSwaC_ge_CampaginReticleSize_Medium, StringExternal("Param/Value/CCAA7BCD"), UnitFromId(241), "Ref_Center");
TextTagSetPosition(TextTagLastCreated(), UnitGetPosition(UnitFromId(241)), 4.0);
gv_parasiticDominationTarget_Helper = libNtve_gf_ActorLastCreated();
gv_parasiticDominationTarget_TAG = TextTagLastCreated();
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zlab01.sc2map/MapScript.galaxy:631
// Implementation
libSwaC_gf_CreateReticleEffectAndTextTagAtPoint(lp_type, lp_size, lp_tEXT, lp_cHOSEN_POINT);
TextTagSetPosition(TextTagLastCreated(), lp_cHOSEN_POINT, lp_oFFSET);
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:684
CameraPan(gv_pLAYER_01_USER, UnitGetPosition(lp_cHOSEN_UNIT), 2.0, -1, 10.0, true);
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergEnemy, libSwaC_ge_CampaginReticleSize_Medium, UnitTypeGetName(UnitGetType(lp_cHOSEN_UNIT)), lp_cHOSEN_UNIT, "Ref_Target");
TextTagSetPosition(TextTagLastCreated(), UnitGetPosition(lp_cHOSEN_UNIT), 1.5);
while (!(((UnitGetPropertyFixed(lp_cHOSEN_UNIT, c_unitPropLifePercent, c_unitPropCurrent) < 100.0) || (UnitIsAlive(lp_cHOSEN_UNIT) == false)))) {
Wait(1.0, c_timeGame);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zchar02.sc2map — MapScript.galaxy:4623
gv_introReticle = libNtve_gf_ActorLastCreated();
gv_introTextTag = TextTagLastCreated();
TextTagSetPosition(TextTagLastCreated(), PointFromId(112), 1.0);
SoundPlay(SoundLink("UI_BriefingUnitSelect", -1), PlayerGroupAll(), 100.0, 0.0);
TransmissionWait(TransmissionLastSent(), 0.0);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid01.sc2map — MapScript.galaxy:1719
CameraPan(gv_pLAYER_01_USER, UnitGetPosition(UnitFromId(241)), 2.0, -1, 10, true);
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergEnemy, libSwaC_ge_CampaginReticleSize_Medium, StringExternal("Param/Value/CCAA7BCD"), UnitFromId(241), "Ref_Center");
TextTagSetPosition(TextTagLastCreated(), UnitGetPosition(UnitFromId(241)), 4.0);
gv_parasiticDominationTarget_Helper = libNtve_gf_ActorLastCreated();
gv_parasiticDominationTarget_TAG = TextTagLastCreated();
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zlab01.sc2map — MapScript.galaxy:631
// Implementation
libSwaC_gf_CreateReticleEffectAndTextTagAtPoint(lp_type, lp_size, lp_tEXT, lp_cHOSEN_POINT);
TextTagSetPosition(TextTagLastCreated(), lp_cHOSEN_POINT, lp_oFFSET);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:684
CameraPan(gv_pLAYER_01_USER, UnitGetPosition(lp_cHOSEN_UNIT), 2.0, -1, 10.0, true);
libSwaC_gf_AttachReticleEffectAndTextTagOnUnit(libSwaC_ge_CampaginReticleType_ZergEnemy, libSwaC_ge_CampaginReticleSize_Medium, UnitTypeGetName(UnitGetType(lp_cHOSEN_UNIT)), lp_cHOSEN_UNIT, "Ref_Target");
TextTagSetPosition(TextTagLastCreated(), UnitGetPosition(lp_cHOSEN_UNIT), 1.5);
while (!(((UnitGetPropertyFixed(lp_cHOSEN_UNIT, c_unitPropLifePercent, c_unitPropCurrent) < 100.0) || (UnitIsAlive(lp_cHOSEN_UNIT) == false)))) {
Wait(1.0, c_timeGame);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1953
if ((UnitIsAlive(UnitFromId(2807)) == true)) {
libVCMI_gf_CreateReticleEffectAndTextTagAtPoint(libVCMI_ge_CampaginReticleType_ProtossEnemy, libVCMI_ge_CampaginReticleSize_Large, StringExternal("Param/Value/901EE696"), UnitGetPosition(UnitFromId(2807)));
TextTagSetPosition(TextTagLastCreated(), UnitGetPosition(UnitFromId(2807)), 0.0);
libHots_gf_StoreActorForUnit(UnitFromId(2807), 1, libNtve_gf_ActorLastCreated());
libHots_gf_StoreTextTagForUnit(UnitFromId(2807), 1, TextTagLastCreated());
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:1960
if ((UnitIsAlive(UnitFromId(2808)) == true)) {
libVCMI_gf_CreateReticleEffectAndTextTagAtPoint(libVCMI_ge_CampaginReticleType_ProtossEnemy, libVCMI_ge_CampaginReticleSize_Large, StringExternal("Param/Value/28AB902F"), UnitGetPosition(UnitFromId(2808)));
TextTagSetPosition(TextTagLastCreated(), UnitGetPosition(UnitFromId(2808)), 0.0);
libHots_gf_StoreActorForUnit(UnitFromId(2808), 1, libNtve_gf_ActorLastCreated());
libHots_gf_StoreTextTagForUnit(UnitFromId(2808), 1, TextTagLastCreated());
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:1251
gv_introReticle = libNtve_gf_ActorLastCreated();
gv_introTextTag = TextTagLastCreated();
TextTagSetPosition(gv_introTextTag, PointFromId(71), 0.0);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur03.sc2map/MapScript.galaxy:4120
gv_introReticle = libNtve_gf_ActorLastCreated();
gv_introTextTag = TextTagLastCreated();
TextTagSetPosition(gv_introTextTag, PointFromId(71), 0.0);
libNtve_gf_CreateModelAtPoint("PylonPlacement", PointFromId(71));
gv_introPylonHelper = libNtve_gf_ActorLastCreated();
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:1496
gv_destructionWaveReticle = libNtve_gf_ActorLastCreated();
gv_destructionWaveTag = TextTagLastCreated();
TextTagSetPosition(gv_destructionWaveTag, UnitGetPosition(UnitFromId(830)), 0.0);
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/4803D80E"), null, UnitGetPosition(UnitFromId(830)));
TriggerEnable(gt_DestructionWaveUsed, true);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:1863
gv_shadowDashReticle = libNtve_gf_ActorLastCreated();
gv_shadowDashTag = TextTagLastCreated();
TextTagSetPosition(gv_shadowDashTag, PointFromId(1152), 0.0);
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/BE100F4E"), null, PointFromId(1152));
Wait(1.0, c_timeReal);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:4441
gv_reclamationReticle = libNtve_gf_ActorLastCreated();
gv_reclamationTag = TextTagLastCreated();
TextTagSetPosition(gv_reclamationTag, UnitGetPosition(UnitFromId(299)), 0.0);
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/28E7787C"), null, UnitGetPosition(UnitFromId(299)));
TriggerEnable(gt_ReclamationUsed, true);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:1817
gv_launchBayReticules[auto759BD870_var] = libNtve_gf_ActorLastCreated();
gv_launchBayTextTags[auto759BD870_var] = TextTagLastCreated();
TextTagSetPosition(TextTagLastCreated(), PointWithOffsetPolar(gv_launchBayLocations[auto759BD870_var], 0.5, 90.0), 0.0);
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pshakuras01.sc2map/MapScript.galaxy:5862
gv_launchBayReticules[1] = libNtve_gf_ActorLastCreated();
gv_launchBayTextTags[1] = TextTagLastCreated();
TextTagSetPosition(TextTagLastCreated(), PointWithOffsetPolar(gv_launchBayLocations[1], 0.5, 90.0), 0.0);
TransmissionWait(TransmissionLastSent(), 0.0);
auto8DD53543_g = gv_introDarkTemplar;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1953
if ((UnitIsAlive(UnitFromId(2807)) == true)) {
libVCMI_gf_CreateReticleEffectAndTextTagAtPoint(libVCMI_ge_CampaginReticleType_ProtossEnemy, libVCMI_ge_CampaginReticleSize_Large, StringExternal("Param/Value/901EE696"), UnitGetPosition(UnitFromId(2807)));
TextTagSetPosition(TextTagLastCreated(), UnitGetPosition(UnitFromId(2807)), 0.0);
libHots_gf_StoreActorForUnit(UnitFromId(2807), 1, libNtve_gf_ActorLastCreated());
libHots_gf_StoreTextTagForUnit(UnitFromId(2807), 1, TextTagLastCreated());
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:1960
if ((UnitIsAlive(UnitFromId(2808)) == true)) {
libVCMI_gf_CreateReticleEffectAndTextTagAtPoint(libVCMI_ge_CampaginReticleType_ProtossEnemy, libVCMI_ge_CampaginReticleSize_Large, StringExternal("Param/Value/28AB902F"), UnitGetPosition(UnitFromId(2808)));
TextTagSetPosition(TextTagLastCreated(), UnitGetPosition(UnitFromId(2808)), 0.0);
libHots_gf_StoreActorForUnit(UnitFromId(2808), 1, libNtve_gf_ActorLastCreated());
libHots_gf_StoreTextTagForUnit(UnitFromId(2808), 1, TextTagLastCreated());
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:1251
gv_introReticle = libNtve_gf_ActorLastCreated();
gv_introTextTag = TextTagLastCreated();
TextTagSetPosition(gv_introTextTag, PointFromId(71), 0.0);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur03.sc2map — MapScript.galaxy:4120
gv_introReticle = libNtve_gf_ActorLastCreated();
gv_introTextTag = TextTagLastCreated();
TextTagSetPosition(gv_introTextTag, PointFromId(71), 0.0);
libNtve_gf_CreateModelAtPoint("PylonPlacement", PointFromId(71));
gv_introPylonHelper = libNtve_gf_ActorLastCreated();
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:1496
gv_destructionWaveReticle = libNtve_gf_ActorLastCreated();
gv_destructionWaveTag = TextTagLastCreated();
TextTagSetPosition(gv_destructionWaveTag, UnitGetPosition(UnitFromId(830)), 0.0);
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/4803D80E"), null, UnitGetPosition(UnitFromId(830)));
TriggerEnable(gt_DestructionWaveUsed, true);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:1863
gv_shadowDashReticle = libNtve_gf_ActorLastCreated();
gv_shadowDashTag = TextTagLastCreated();
TextTagSetPosition(gv_shadowDashTag, PointFromId(1152), 0.0);
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/BE100F4E"), null, PointFromId(1152));
Wait(1.0, c_timeReal);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:4441
gv_reclamationReticle = libNtve_gf_ActorLastCreated();
gv_reclamationTag = TextTagLastCreated();
TextTagSetPosition(gv_reclamationTag, UnitGetPosition(UnitFromId(299)), 0.0);
UIAlertPoint("Trigger", gv_pLAYER_01_USER, StringExternal("Param/Value/28E7787C"), null, UnitGetPosition(UnitFromId(299)));
TriggerEnable(gt_ReclamationUsed, true);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:1817
gv_launchBayReticules[auto759BD870_var] = libNtve_gf_ActorLastCreated();
gv_launchBayTextTags[auto759BD870_var] = TextTagLastCreated();
TextTagSetPosition(TextTagLastCreated(), PointWithOffsetPolar(gv_launchBayLocations[auto759BD870_var], 0.5, 90.0), 0.0);
}
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pshakuras01.sc2map — MapScript.galaxy:5862
gv_launchBayReticules[1] = libNtve_gf_ActorLastCreated();
gv_launchBayTextTags[1] = TextTagLastCreated();
TextTagSetPosition(TextTagLastCreated(), PointWithOffsetPolar(gv_launchBayLocations[1], 0.5, 90.0), 0.0);
TransmissionWait(TransmissionLastSent(), 0.0);
auto8DD53543_g = gv_introDarkTemplar;
mods/novastoryassets.sc2mod — base.sc2maps/maps/campaign/nova/nova01.sc2map/MapScript.galaxy:5010
gv_pulseGrenadeReticle = libNtve_gf_ActorLastCreated();
gv_pulseGrenadeTextTag = TextTagLastCreated();
TextTagSetPosition(gv_pulseGrenadeTextTag, RegionGetCenter(RegionFromId(48)), 0.0);
UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("NovaGadgetPulseGrenades", 0), true);
auto4FB098EF_g = UnitGroup(null, gv_pLAYER_02_DOMINION, RegionFromId(48), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);
mods/novastoryassets.sc2mod/base.sc2maps/maps/campaign/nova/nova01.sc2map — MapScript.galaxy:5010
gv_pulseGrenadeReticle = libNtve_gf_ActorLastCreated();
gv_pulseGrenadeTextTag = TextTagLastCreated();
TextTagSetPosition(gv_pulseGrenadeTextTag, RegionGetCenter(RegionFromId(48)), 0.0);
UISetButtonHighlighted(PlayerGroupAll(), AbilityCommand("NovaGadgetPulseGrenades", 0), true);
auto4FB098EF_g = UnitGroup(null, gv_pLAYER_02_DOMINION, RegionFromId(48), UnitFilter(0, 0, (1 << c_targetFilterStructure) | (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 0);