i dont know why but whenever i try make a floating text on attack, it becomes such a pain and never dissapears at the right time.
i would do a simple trigger like:
events:
- unit is attacked
conditions:
- level of ability ## for attacking hero is more than or equal to 1
actions:
- create floating text at position of attacked unit saying **
- hide to all players except owner of attacking unit
- set velocity to %% etc
- set lifespan to @@
- set fading age to $$
- enable performance
for some reason this doesn't dissapear, anyone know what i am doing wrong?
i would do a simple trigger like:
events:
- unit is attacked
conditions:
- level of ability ## for attacking hero is more than or equal to 1
actions:
- create floating text at position of attacked unit saying **
- hide to all players except owner of attacking unit
- set velocity to %% etc
- set lifespan to @@
- set fading age to $$
- enable performance
for some reason this doesn't dissapear, anyone know what i am doing wrong?