I have a floating text on unit death... but as I read in emjlr3's "memory leak" tutorial, i saw there is written if a floating text's lifespan it set, than u can remove floating text right away as next trigger (and there says it won't destroy it until lifespan seconds).
I tried so to minimise my memory leaks, but now there all txt is gone..
any other sugestions how to see floating text and to reduce leaks at the same time
also a my trigger:
pls help
I tried so to minimise my memory leaks, but now there all txt is gone..
any other sugestions how to see floating text and to reduce leaks at the same time
also a my trigger:
Trigger:
- Then - Actions
- Floating Text - Create floating text that reads ((String((Level of (Dying unit)))) + +) above (Dying unit) with Z offset 0.00, using font size 15.00, color (100.00%, 100.00%, 100.00%), and 0.00% transparency
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Hide (Last created floating text) for (All players)
- Floating Text - Show (Last created floating text) for (Player group((Owner of (Killing unit))))
- Floating Text - Set the velocity of (Last created floating text) to 50.00 towards 90.00 degrees
- Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
- Floating Text - Change the lifespan of (Last created floating text) to 3.00 seconds
- Floating Text - Destroy (Last created floating text)
- Player - Set (Owner of (Killing unit)) Current lumber to (((Owner of (Killing unit)) Current lumber) + (Level of (Dying unit)))
pls help