Set Target ============== .. code-block:: csharp protected virtual void SetTarget(Unit target) This method sets a new attack target for this unit. It is called automatically when the unit's ``EnemiesSearch`` module finds a suitable enemy target.