So, I have a working jass trigger to make Floating Text over a unit's head, however, I have noticed that the Floating Text can be seen through fog of war.
My question is this:
Is there a way that I can make the Floating Text unable to be seen through the Fog of War, or is there a way to display it to only the Players belonging to the Forces that side with the Units involved (attacker and target)? If so, how would I go about doing it?
The Function as it stands is below.
-Thanks in advance
Cov3r70ps
My question is this:
Is there a way that I can make the Floating Text unable to be seen through the Fog of War, or is there a way to display it to only the Players belonging to the Forces that side with the Units involved (attacker and target)? If so, how would I go about doing it?
The Function as it stands is below.
-Thanks in advance
Cov3r70ps
JASS:
function damageText takes unit attacker, unit target, string str, integer red, integer green, integer blue, real life, real fade, integer zoffset returns nothing
local real x = GetUnitX(attacker)
local real y = GetUnitY(attacker)
local texttag tt = CreateTextTag()
call SetTextTagText(tt, str, 0.023)
call SetTextTagPos(tt, x, y, 75 + zoffset)
call SetTextTagVelocity(tt, 0, 0.03)
call SetTextTagColor(tt, red, green, blue, 255)
call SetTextTagPermanent(tt,false)
call SetTextTagFadepoint(tt, fade)
call SetTextTagLifespan(tt,life)
set str = null
set target = null
set attacker = null
set tt = null
endfunction