So my issue is simple. I can get scrolling combat text to work with non-fatal damage, but the fatal blow seems to return no triggering damage amount. Is this because the dead unit no longer exists and therefore cannot have a text tag attached to it?
@voodude2008: Go
Is this because the dead unit no longer exists and therefore cannot have a text tag attached to it?
[/quote]
Indeed this is the case. The usual SC2 unit vanishes the exact moment it dies, and gets replaced by a model of the death animation.
Try printing a trigger message, if the damage amount is indeed 0; I doubt it. You could set the death tme of your units from 0 to 1, for example, in this case you sould at least be able to retrieve the location of the unit (not sure if you can get the location with 0 death time, try it out).
you attached the text tag to the unit. Therefore when the unit died the text tag disappeared. You just need to have it NOT attached to the unit, so create text tag at position of triggering unit and set the height offset in the create text tag action
Text Tag - Set the velocity of (Last created text tag) to 0.5 coordinates per second at an angle of 90.0 degrees from horizontal
Text Tag - Set Duration time for (Last created text tag) to 2.0 seconds
So my issue is simple. I can get scrolling combat text to work with non-fatal damage, but the fatal blow seems to return no triggering damage amount. Is this because the dead unit no longer exists and therefore cannot have a text tag attached to it?
Here is my trigger:
I looked around but I couldn't find any decent answers so please help me out on this one.
@voodude2008: Go Is this because the dead unit no longer exists and therefore cannot have a text tag attached to it?
[/quote]
Indeed this is the case. The usual SC2 unit vanishes the exact moment it dies, and gets replaced by a model of the death animation.
Try printing a trigger message, if the damage amount is indeed 0; I doubt it. You could set the death tme of your units from 0 to 1, for example, in this case you sould at least be able to retrieve the location of the unit (not sure if you can get the location with 0 death time, try it out).
@Kueken531: Go
Well it works when I attach it to my character, but the death time thing didn't quite seem to work. Guess I can try to make a point variable for it.
Edit: This works but with drawbacks for multiple enemies dying at the same time. Gotta be a better way.
@voodude2008: Go
you attached the text tag to the unit. Therefore when the unit died the text tag disappeared. You just need to have it NOT attached to the unit, so create text tag at position of triggering unit and set the height offset in the create text tag action
Text Tag - Set the velocity of (Last created text tag) to 0.5 coordinates per second at an angle of 90.0 degrees from horizontal Text Tag - Set Duration time for (Last created text tag) to 2.0 seconds
@Sharicasmi: Go
Hot damn, it works! Thanks brahseph.