Hammer Caster
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Hammer
Actions
Set HammerCastingUnit[(Player number of (Owner of (Casting unit)))] = (Casting unit)
Set HammerTargetUnit[(Player number of (Owner of (Target unit of ability being cast)))] = (Target unit of ability being cast)
Set HammerEffect = (Position of HammerCastingUnit[(Player number of (Owner of (Casting unit)))])
Special Effect - Create a special effect at HammerEffect using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_HammerEffect)
Hammer Knockback
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set HammerKnockBack[(Integer A)] = ((Position of HammerTargetUnit[(Integer A)]) offset by 7.00 towards (Angle from (Position of HammerCastingUnit[(Integer A)]) to (Position of HammerTargetUnit[(Integer A)])) degrees)
Unit - Move HammerTargetUnit[(Integer A)] instantly to HammerKnockBack[(Integer A)]
Custom script: call RemoveLocation(udg_HammerKnockBack[GetForLoopIndexA()])
when the paladin uses hammer on a unit, the knockback angle is weird sometimes it doesnt correspond to the facing of paladin help please
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Hammer
Actions
Set HammerCastingUnit[(Player number of (Owner of (Casting unit)))] = (Casting unit)
Set HammerTargetUnit[(Player number of (Owner of (Target unit of ability being cast)))] = (Target unit of ability being cast)
Set HammerEffect = (Position of HammerCastingUnit[(Player number of (Owner of (Casting unit)))])
Special Effect - Create a special effect at HammerEffect using Abilities\Spells\Human\ThunderClap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation (udg_HammerEffect)
Hammer Knockback
Events
Time - Every 0.01 seconds of game time
Conditions
Actions
For each (Integer A) from 1 to 12, do (Actions)
Loop - Actions
Set HammerKnockBack[(Integer A)] = ((Position of HammerTargetUnit[(Integer A)]) offset by 7.00 towards (Angle from (Position of HammerCastingUnit[(Integer A)]) to (Position of HammerTargetUnit[(Integer A)])) degrees)
Unit - Move HammerTargetUnit[(Integer A)] instantly to HammerKnockBack[(Integer A)]
Custom script: call RemoveLocation(udg_HammerKnockBack[GetForLoopIndexA()])
when the paladin uses hammer on a unit, the knockback angle is weird sometimes it doesnt correspond to the facing of paladin help please