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!
Not sure there's a great way to do this. It would probably involve creating text, destroying it, then recreating it each time the unit moves.
Maybe something like this?
refresh text
Events
Time - timer_Variable_001 expires
Conditions
Actions
Floating Text - Create floating text that reads test above Cenarius 0000 <gen> with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
Floating Text - Change (Last created floating text): Disable permanence
Floating Text - Change the lifespan of (Last created floating text) to 0.11 seconds
Countdown Timer - Start timer_Variable_001 as a One-shot timer that will expire in 0.10 seconds
It is also possible to set floating text up with 1 trigger (and store it in a variable), then have another one that updates every 0.02 seconds or so and move the text to the unit (must also be in a variable) using "custom script":
The floating text should be stored in "my_floating_text"-variable and the unit "follow_hero" (of course you can edit the custom script to have any variable-name). The 85 is just the "Z-value" or the text, I.E. how high up it is. You can also add an offset from the floating-text if you want by adding " + 25.0" after the "GetUnitX(udg_follow_hero)" or the Y.
Floating Text - Change the position of (Last created floating text) to (Last created unit) with Z offset 0.00.
If you want it to work for multiple units then you can do the following:
Use a Unit Indexer or Hashtable to link the Floating Text to each unit.
Then store all of the desired units in a Unit Group.
Then loop over the Unit Group periodically and update the position of each unit's linked Floating Text.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.