13

Creating and Adding the Enemy Artificial Intelligence

In the previous chapter, you added layered animations for the player character using animation blending with a combination of Anim Slots, Animation Blueprints, and blending functions such as Layered blend per bone. With this knowledge, you were able to smoothly blend the throwing animation montage with the base movement state machine to create layered animations for the character.

The primary focus of this chapter is to take the C++ enemy class you created in Chapter 12, Animation Blending and Montages, and bring this enemy to life using AI. UE5 uses many different tools to achieve AI, such as AI Controllers, Blackboards, and Behavior Trees, all of which you will learn about and use in ...

Get Elevating Game Experiences with Unreal Engine 5 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.