• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Floating text

Status
Not open for further replies.
Level 12
Joined
Jul 11, 2010
Messages
422
100 per player at the same time (the stack goes from 99 to 0).

If some of the floating texts are not to be displayed to all players, you may want to create them locally (using if GetLocalPlayer()==YourPlayer then or whatever). They won't mess up with the handle stack since they use a separated ID stack, but that means you shouldn't use their IDs in hashtables for instance.

If you only show/hide floating texts instead of creating them locally, it will do strictly 100 at the same time.
 
Level 29
Joined
Oct 24, 2012
Messages
6,543
this is what im doing

yes it leaks ik this.

  • Actions
    • Floating Text - Create floating text that reads (String(tempInt)) at (Center of (Playable map area)) with Z offset 0.00, using font size 50.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
    • Set text[tempInt] = (Last created floating text)
    • Floating Text - Change text[tempInt]: Disable permanence
    • Floating Text - Set the velocity of text[tempInt] to 64.00 towards 90.00 degrees
    • Floating Text - Change the fading age of text[tempInt] to 1.00 seconds
 
Status
Not open for further replies.
Top