- Joined
- Sep 9, 2007
- Messages
- 6,759
I want:
A simple text tag that fades from first second and disappears after 5 seconds.
whats wrong?
It says the text btw.
Edit: I see no texttag..
A simple text tag that fades from first second and disappears after 5 seconds.
JASS:
local unit u = GetTriggerUnit()
local location l
local real x
local real y
local texttag k
local real d = GetEventDamage()
set l = GetUnitLoc(u)
set x = GetLocationX(l)
set y = GetLocationY(l)
call RemoveLocation(l)
set k = CreateTextTag()
call SetTextTagText(k,"-"+I2S(R2I(d)),0.05)
call SetTextTagPos(k, x, y, 75.00)
call SetTextTagVelocity(k, 64, 90)
call SetTextTagColor(k, 255, 255, 255, 255)
call SetTextTagPermanent(k,false)
call SetTextTagFadepoint(k, 0.00)
call SetTextTagLifespan(k,5.00)
call SetTextTagVisibility(k,true)
call DisplayTextToPlayer(Player(0),0,0,"This function has been executed!")
whats wrong?
It says the text btw.
Edit: I see no texttag..
Last edited: