- Joined
- Mar 5, 2011
- Messages
- 199
hey guys, can someone show me an efficient trigger where when a unit is killed by an allied unit, a special effect(exclamation mark) is shown on his/her head for a second just like in dota(when denying creeps)?
Use a boolean condition to check if the killing unit is an ally or not.
- Deny
- Events
- Unit - A unit Dies
- Conditions
- ((Killing unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True
- Actions
- Floating Text - Create floating text that reads ! above (Triggering unit) with Z offset 0.00, using font size 10.00, color (100.00%, 0.00%, 0.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 64.00 towards 90.00 degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 1.50 seconds
- Floating Text - Change the fading age of (Last created floating text) to 1.00 seconds
If you want to make it colored according to the team color of the killing unit, I guess you'll have to use a lot of ITEs..
Oh yea, forgot about that. Spartipolio's suggested solution below for TC floating text would be easier.
BTW, Offtopic:
Still working on your skin, sorry for being kinda slow. I'm really weak at adding shadows. x3
Yes u should store anything used twice or more into a variable.