L
Lyserg
Guest
Hi. Well, I wanted to make normal attack do a knockback (for unit owned by player and also creeps) , so I tried to do it like this:
And then
Well, that's that, its not working nor did i expect it to work, im new at this, but could you help me to make it work? tnx in advance ^_^
Code:
Events:
-Map Initialization
Conditions:
-
Actions:
Set Attacker = (Attacking unit)
Set AttackedOne = (Attacked unit)
Set PointOfAttacker = (Attacker)
And then
Code:
Events:
Unit - A unit is attacked
Conditions:
(Attacked Unit) equal to AttackedOne
Actions:
Special Effect - Create a special effect attached to the origin of AttackedOne using Objects\Spawnmodels\Undead\ImpaleTargetDust\ImpaleTargetDust.mdl
Unit - Move AttackedOne instantly to (PointOfAttacker offset by ((Distance between PointOfAttacker and (Position Of AttackedOne)) + 5.00) towards (Angle from PointOfAttacker to (Position of AttackedOne)) degrees)
Well, that's that, its not working nor did i expect it to work, im new at this, but could you help me to make it work? tnx in advance ^_^