HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Floating text that follows a unit?

06-01-2004, 12:30 AM#1
Wanderer
Can this be done?
06-01-2004, 12:36 AM#2
Scyze
Quote:
Originally Posted by Wanderer
Can this be done?

Yep. One or two ways. If there is a "Move Floating Text" trigger you could move it to constantly go to the position of the unit you want it on. Otherwise, you could constantly make and destroy Floating Text at the area where your unit is.
06-01-2004, 12:47 AM#3
Wanderer
Need to explain more. There's going to be random units spawning from a point and they will go forward from there. I want the floating text to follow each of them but how can I specify which unit is which when I need to update where the unit is?
06-01-2004, 12:56 AM#4
Scyze
Quote:
Originally Posted by Wanderer
Need to explain more. There's going to be random units spawning from a point and they will go forward from there. I want the floating text to follow each of them but how can I specify which unit is which when I need to update where the unit is?

Hmm. Ok, do this:

Have an integer, say, 1 to (Number of Spawned Units) (If the units are spawned seperately, I dont know how to help then.)
Then use a variable array, say about 20 (or more if your spawning more), and set each unit to that via integers. Then use integers again to create the floating text when they spawn, using another variable array for the floating text. Sorry if this isn't clear--I'm a little tired and I dont have WorldEdit out.
06-01-2004, 01:01 AM#5
Wanderer
Yeah, I think I understand but they are spawned separately and randomly. It's a whole bunch of randomness. I think i'll have to look for another way unless someone else has a suggestion. Thanks though.