DARK SOULS in Unity – Ep. 109

In this episode we create some of our Advanced A.I scripts; including the Idle, Pursue Target and Combat Stance States. We also add obstacle detection whilst our A.I is searching for a target. This is paired with the field of view detection so our A.I is not able to detect a target that is obstructed by a piece of environment. We also add “Combat Styles” using Enums to our A.I. The combat style will be used to decide further action of the advanced A.I on the Combat Stance state script. For example; a “Sword & Shield” style will utilize logic using blocking, parrying, and offensive attacks using the right handed weapon. Whereas the “Archer” style will utilize distance, and ranged attacks with the right handed weapon.

Sebastian Graves