Tyrulan
Ultra Cool Member
- Reaction score
- 37
JASS:
function FloatTextOnUnit takes string text, unit u, integer r, integer g, integer b returns nothing
local texttag t = CreateTextTag()
local real textHeight = 0.023
local real velocity = 0.044375
local real xvelocity = velocity * Cos(90 * bj_DEGTORAD)
local real yvelocity = velocity * Sin(90 * bj_DEGTORAD)
call SetTextTagText(t, text, textHeight)
call SetTextTagPosUnit(t, u, 7.00)
call SetTextTagColor(t, r, b, g, 0)
call SetTextTagVelocity(t, xvelocity, yvelocity)
call SetTextTagPermanent(t, false)
call SetTextTagLifespan(t, 2.00)
endfunction