Covers

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

To enable this feature, mark the 'Use Covers' checkbox in the EnemyController script:

If you use this feature, don't forget to add 'all-round motion' animations:

How to create a cover

  1. Create an object in a scene

  2. Add the Surface component on it

  3. Mark the 'Cover' checkbox