This won't display for a reason which is beyond me :*(
JASS:
function GetDamageText takes unit target returns nothing
local texttag dmgtxt
set dmgtxt = CreateTextTag()
call SetTextTagPosUnit(dmgtxt, target, 0)
call SetTextTagText(dmgtxt, "hello", 13)
call SetTextTagVisibility(dmgtxt, true)
call SetTextTagPermanent(dmgtxt, false)
call SetTextTagVelocity(dmgtxt, 64, 90)
call SetTextTagFadepoint(dmgtxt, 1.6)
call SetTextTagLifespan(dmgtxt, 3)
call SetTextTagColor(dmgtxt, 255, 255, 255, 0)
endfunction
-
Floating Text Test
-
Events
-
Player - Player 1 (Red) types a chat message containing text as An exact match
-
-
Conditions
-
Actions
-
Set tempunit = Sage 0014 <gen>
-
Custom script: call GetDamageText(udg_tempunit)
-
-