• 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.

[General] What do the "x, y" in DisplayTextToPlayer do?

Status
Not open for further replies.
Level 13
Joined
May 11, 2008
Messages
1,198
native DisplayTimedTextToPlayer takes player toPlayer, real x, real y, real duration, string message returns nothing
so, looking at that function, how do we figure how the real x and real y work?

i just supposed you move around the text...but sometimes it works and sometimes it doesn't...more than that...the text seems to sometimes drag other text along with it. and sometimes it makes the text disappear. i'm pretty confused since i've been getting results that don't make sense when experimenting with those reals.

ohh....everytime you call the function it moves ALL the text from every call of that function.
 
Last edited by a moderator:
Level 12
Joined
Jan 30, 2009
Messages
1,067
Isn't that the position of the floating text relative to the unit? So then 0 would be like on the unit in a weird way, and 0.5 would be directly above, 1.0 would be a bit of a distance above the unit, if I'm remembering correctly?
 
Status
Not open for further replies.
Top