• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Question about floating text

Status
Not open for further replies.
Level 37
Joined
Mar 6, 2006
Messages
9,240
  • 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