Modifying the "UnitMotion" file in simulation / components. I defined to the unit that at the moment in which an attack is ordered the unit changes the animation to run towards the unit. At the end of the command, by killing the unit and there is no one else to attack or to change the order to walk to another point other than attack, the unit returns to its walking animation. All this to simulate when approaching, also I plan to define to the unit of rank to stay away each time that they approach the end of a shot, of this way the unit of rank maintains the advantage of distance keeping away of the unit of melee or cavalry.Modifying the "UnitAI" file in simulation / components. I defined to the unit that at the moment in which an attack is ordered the unit changes the animation to run towards the unit.
At the end of the command, by killing the unit and there is no one else to attack or to change the order to walk to another point other than attack, the unit returns to its walking animation. All this to simulate when approaching, also I plan to define to the unit of rank to stay away each time that they approach the end of a shot, of this way the unit of rank maintains the advantage of distance keeping away of the unit of melee or cavalry.
this gives a most faster and realistic combat.