In the game, if an enemy finds suitable cover (close enough to yourself and to the character), he will hide behind it.

To enable this feature, you should activate Use Covers checkbox in the EnemyController script:

How to create a cover?

  1. Create an object in the scene

  2. Add the Surface script on it

  3. Set the Cover checkbox