Xebarsis
New Member
- Reaction score
- 7
I'm trying to make it so that if a unit is damaged by a specific spell based on shockwave that a special effect will be created over the damaged unit. In other words, I want blood to squirt out for whoever gets hurt by the spell. I'm not sure how to do it though. Here's what I got, but it doesn't work:
Trigger:
- Glaive Launcher
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Glaive Launcher Dummy
- Actions
- Set ThePoint = (Position of (Triggering unit))
- Unit - Create 1 Dummy Glaive for (Owner of (Triggering unit)) at ThePoint facing Default building facing degrees
- Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (Target point of ability being cast)
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation (udg_ThePoint)
- Events
Trigger:
- Glaive Damage
- Events
- Unit - A unit Is attacked
- Conditions
- (Unit-type of (Attacking unit)) Equal to Dummy Glaive
- Actions
- Set ThePoint = (Position of (Attacked unit))
- Special Effect - Create a special effect at ThePoint using Objects\Spawnmodels\Human\HumanBlood\HumanBloodFootman.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation (udg_ThePoint)
- Events