event
a unit is attacked
conditions
owner of attacking unit is an enemy of owner of attacked unit equal to false
or
unit type of attacked unit equal to ur desired type
unit type of attacked unit equla to ur desired type
actions
assign a local point variable to position of attacked unit lets say "target"
assign a local unit variable to attacked unit lets say "target"
unit issue order target attack attacking unit
wait desired time
unit issue order stop
unit issue order move to point
remove location point
set target = null