TextTags not showing

wellwish3r

wishes wells.
Reaction score
52
whats wrong with this:

JASS:
local texttag txt = CreateTextTag()
    call SetTextTagText(txt,R2S(GetEventDamage()),8.00)
    call SetTextTagPosUnit(txt,u,150.00)
    call SetTextTagColor(txt,255,0,0,100)
    call SetTextTagPermanent(txt,false)
    call SetTextTagLifespan(txt, 3.00)
    call SetTextTagFadepoint(txt, 2.00)
    call SetTextTagVelocityBJ( txt, 200.00, 90 )
    call SetTextTagVisibility(txt, true))


the tags simply don't show (Events and conditions are fine, checked that)

the odd thing is it works when using BJs:

 

GooS

Azrael
Reaction score
154
I have no idea what's wrong, but what I can say is that this works:

JASS:
local texttag TTag = CreateTextTag()
call SetTextTagText(TTag, R2S(GetEventDamage()), (8 * 0.023 / 10))
call SetTextTagPos(TTag, GetUnitX(GetTriggerUnit()), GetUnitY(GetTriggerUnit()), 10.0)
call SetTextTagColor(TTag, 255, 0, 0, 255) 
call SetTextTagLifespan(TTag, 3.00 )
call SetTextTagPermanent(TTag, false )
call SetTextTagVelocity(TTag, ((200 * 0.071 / 128) * Cos(90 * bj_DEGTORAD)), ((200 * 0.071 / 128) * Sin(90 * bj_DEGTORAD)))


200 in velocity = speed
90 in velocity = angle
8 in SetTextTagText = size

Hope you can use it, sry I don't know what's wrong in yours.

//==GooS
 

wellwish3r

wishes wells.
Reaction score
52
Thanks, just fount out myself that the text height is calculated in a rather strange way^^
 

DonRoman

New Member
Reaction score
5
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top