floating text from real ???

Status
Not open for further replies.
Level 3
Joined
Sep 3, 2007
Messages
27
how can i convert real value to string so i can create a floating text above unit (I'm giving a random real value lets say 1 to 100. How can i make the picked random number between 1 and 100 to create it as a floating text ?)
 
One thing you should know, if you are planning on making random Real numbers between 1 and 100, it will become numbers like 1.338844 or 56.234242

If you want whole numbers on a easy way, use Integers

I think you are meaning it this way
  • Events
    • Something Happends
  • Conditon
    • Some Conditions
  • Actions
    • Set TempInteger = (Random integer number between 1 and 100)
    • Floating Text - Create floating text that reads (String(TempInteger)) above UNIT with Z offset 0.00, using font size 10.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
am i right?

oh, one final thing. This Floating Text is Permanent. It wont go away. There are ways to remove them overtime, but ive not included them here :P
 
Status
Not open for further replies.
Back
Top