- Joined
- Nov 13, 2006
- Messages
- 1,814
1.
dont work at all, so dont have floating text, question is why?
map init
header function
call
2. i can decrease experience? i mean i tryed set hero exp to 0 but at hero bar its remain same :/
dont work at all, so dont have floating text, question is why?
map init
JASS:
set udg_FT = CreateTextTag()
set udg_Xvel = 7.1 / 128 * Cos(3.14159 / 2)
set udg_Yvel = 7.1 / 128 * Sin(3.14159 / 2)
header function
JASS:
function FT takes string txt, real fsize, unit u, integer red, integer green, integer blue, integer alpha returns nothing
local real x = GetUnitX(u)
local real y = GetUnitY(u)
local real diff = StringLength(txt) * fsize/2+1
call SetTextTagText(udg_FT, txt, fsize * 0.023)
call SetTextTagPos(udg_FT, x-diff, y, 100.00)
call SetTextTagColor(udg_FT, red, green, blue, alpha)
call SetTextTagPermanent( udg_FT, false )
call SetTextTagLifespan( udg_FT, 4.50 )
call SetTextTagFadepoint( udg_FT, 2.50 )
call SetTextTagVelocity(udg_FT, udg_Xvel, udg_Xvel)
endfunction
call
JASS:
call FT ("Blocked!", 0.9 , t, 0, 0, 255, 200)
2. i can decrease experience? i mean i tryed set hero exp to 0 but at hero bar its remain same :/