• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Floating text on UNIT and POINT

Status
Not open for further replies.
Level 20
Joined
Oct 21, 2006
Messages
3,230
I just tested out and didnt find any differences between these two actions. Except that on Unit, you dont need a Point, so it wont leak. Or?

So I was just eager to ask, if anyone could say, that are these actions identicals or are there some tricks that I should know? :s
 
Level 7
Joined
Oct 14, 2008
Messages
340
Creating a text tag on a unit ultimately calls this function:
JASS:
native SetTextTagPosUnit            takes texttag t, unit whichUnit, real heightOffset returns nothing

my guess is that it finds the x,y of your unit, therefore would not leak.. but I'm not completely sure..

JASS:
native SetTextTagPos                takes texttag t, real x, real y, real heightOffset returns nothing
this sadly is not available in GUI, you're forced to use locations unless you trust the unitposition.. :/
 
Status
Not open for further replies.
Top