HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

TextTag natives

03-17-2006, 06:49 PM#1
The_AwaKening
I'm using this for critical strike text tag
Collapse JASS:
    call CreateTextTag()
    call SetTextTagText(GetLastCreatedTextTag(),I2S(i) + "!",10)
    call SetTextTagPosUnit(GetLastCreatedTextTag(),t,0)
    call SetTextTagColor(GetLastCreatedTextTag(),100,0,0,0)
    call SetTextTagVelocity( GetLastCreatedTextTag(), 72, 90 )
    call SetTextTagVisibility(GetLastCreatedTextTag(),true)
    call SetTextTagPermanent( GetLastCreatedTextTag(), false )
    call SetTextTagLifespan( GetLastCreatedTextTag(), 5 )
    call SetTextTagFadepoint( GetLastCreatedTextTag(), 2 )
For some reason it won't show up in the game. If I build this same thing using bj's, it works just fine
Collapse JASS:
    call CreateTextTagUnitBJ( I2S(i) + "!", t, 0, 10, 100, 0.00, 0.00, 0 )
    call SetTextTagVelocityBJ( GetLastCreatedTextTag(), 72.00, 90 )
    call SetTextTagPermanentBJ( GetLastCreatedTextTag(), false )
    call SetTextTagLifespanBJ( GetLastCreatedTextTag(), 5 )
    call SetTextTagFadepointBJ( GetLastCreatedTextTag(), 2.00 )
I figure I am leaving something out. Anyone know?
03-17-2006, 06:54 PM#2
Vexorian
wrong wrong wrong.

Collapse JASS:
    local texttag tt= CreateTextTag()
    call SetTextTagText(tt,I2S(i) + "!",10)
    call SetTextTagPosUnit(tt,t,0)
    call SetTextTagColor(t,100,0,0,0)
    call SetTextTagVelocity( tt, 72, 90 )
    call SetTextTagVisibility(tt,true)
    call SetTextTagPermanent( tt, false )
    call SetTextTagLifespan( tt, 5 )
    call SetTextTagFadepoint( tt, 2 )

GetLastCreatedTextTag() is just a function that returns a global variable. That variable is set by the BJ texttag functions, but if you are using natives that function won't work well
03-17-2006, 07:14 PM#3
The_AwaKening
Still doesn't work. Guess I'll just use the bj's for now.