HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

odd flaoting tekst

07-15-2006, 10:18 PM#1
Hemlock
I added this event in a melee inits trigger
Trigger:
Melee Initialization
Collapse Events
Map initialization
Conditions
Collapse Actions
Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 2 (Blue)) and do (Trigger - Add to take damage <gen> the event (Unit - (Picked unit) Takes damage))

and then I have this trigger that works on that event
Trigger:
take damage
Events
Collapse Conditions
(Damage taken) Equal to 5.00
Collapse Actions
Game - Display to (All players) the text: damage taken
Floating Text - Create floating text that reads (String((Damage taken))) above (Picked unit) with Z offset 0.00, using font size 10.00, color (0.00%, 100.00%, 0.00%), and 0.00% transparency

now I have made a demonhunter on the map with the imolation ability which deals 5 damage per interval (which is 5 seconds)

now this all works, but oddely enough the text appears in the middle of the map instead of above the unit :|.

any tips?
07-15-2006, 10:21 PM#2
Rising_Dusk
In your floating text creation line the Picked unit is null therefore the null coords go to (0,0) [Center of map].
Try 'Triggering Unit' instead.
07-15-2006, 10:33 PM#3
Hemlock
*-_-"* I feel kinda stupid that I didn't see that

Thanks for the help though :)

Rep cause I was in a generous mood ^_^