• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Question about floating text

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,243
  • Untitled Trigger 017
    • Events
    • Conditions
    • Actions
      • // Create the text above some unit
      • Floating Text - Create floating text that reads *message above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • // How fast the text moves towards which angle
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • // Allows the text to be removed
      • Floating Text - Change (Last created floating text): Disable permanence
      • // The text is destroyed after 2 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • // The text starts to fade after 1.5 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 1.50 seconds
Use the event you need, use correct unit above which you create the text. You can convert reals/integers to strings so you can display damage for example.
 
Level 3
Joined
Oct 31, 2010
Messages
32
  • Untitled Trigger 017
    • Events
    • Conditions
    • Actions
      • // Create the text above some unit
      • Floating Text - Create floating text that reads *message above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
      • // How fast the text moves towards which angle
      • Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
      • // Allows the text to be removed
      • Floating Text - Change (Last created floating text): Disable permanence
      • // The text is destroyed after 2 seconds
      • Floating Text - Change the lifespan of (Last created floating text) to 2.00 seconds
      • // The text starts to fade after 1.5 seconds
      • Floating Text - Change the fading age of (Last created floating text) to 1.50 seconds
Use the event you need, use correct unit above which you create the text. You can convert reals/integers to strings so you can display damage for example.


thanks guys
 
Status
Not open for further replies.
Top