Anything.
New Member
- Reaction score
- 69
I'm trying to make a casting system so that when a unit begins casting, it creates an effect, and when it dies / stops / finishes casting, it removes the effect. The effect currently only appears after the unit finishes casting and removes itself in about 1 seconds.
Code:
Fire Spell
Events
Unit - A unit Begins casting an ability
Conditions
((Casting unit) is A Hero) Equal to True
Or - Any (Conditions) are true
Conditions
(Ability being cast) Equal to Feral Spirit (Test)
Actions
Special Effect - Create a special effect attached to the (hand + left) of (Casting unit) using Abilities\Weapons\FireBallMissile\FireBallMissile.mdl
Set SpellLeft[(Player number of (Owner of (Casting unit)))] = (Last created special effect)
Special Effect - Create a special effect attached to the (hand + right) of (Casting unit) using Abilities\Weapons\FireBallMissile\FireBallMissile.mdl
Set SpellRight[(Player number of (Owner of (Casting unit)))] = (Last created special effect)
Animation - Play (Casting unit)'s (spell + loop) animation
Code:
Finish Cast
Events
Unit - A unit Finishes casting an ability
Conditions
((Casting unit) is A Hero) Equal to True
Actions
Animation - Reset (Dying unit)'s animation
Special Effect - Destroy SpellLeft[(Player number of (Owner of (Casting unit)))]
Special Effect - Destroy SpellRight[(Player number of (Owner of (Casting unit)))]