官术网_书友最值得收藏!

Chapter 4. The Road to Thinkable AI

Usually, when we speak about creating a game, we all just think about enemies, evils, and the bad guys. Of course, games are beyond that. But enemies are what usually make a game what it is; enemies and AI are a huge part of the fun. Enemies are what usually give you a goal to finish a level, to use a weapon, or even to take a mission.

Apart from this, on the other side of the game, involving us, the developers, we all are more interested more in AI as the most important part of the game development process. It is not only the graphic quality and performance that make a game more special than the previous one, but also topics such as AI and how smart and lively your AI is.

When it comes to creating AI for your game, Unreal Engine comes with amazing content. Have you ever liked games such as Mass Effect, God of War, and The Batman Arkham series? All these games have been made with Unreal Engine (Unreal Engine 3 most of the time), and all of them have a remarkable AI and boss fights that we cannot forget even after 100 years!

The thing with Unreal Engine is not the games that have been made with it, but the number of tools and subtools that are supported by the engine, which allow you to tune and detail your enemies and AI behaviors. They are useful for even the smallest tasks.

That's the topic of this chapter: understanding the tools, asset types, and how to code in C++ all within the Unreal Engine ecosystem in order to add AI to our game.

By the end of this chapter, you'll be able to:

  • Build an enemy class and write down all the required gameplay code
  • Build logic to detect the player based on the navigation mesh we built earlier using Nav Mesh Bounds Volume
  • Use a wide range of AI-related assets, such as Tasks, Services, Blackboards, and Behavior Trees
  • Use the behavior tree editor to build the needed behaviors for AI
  • Add various triggers playing different roles
  • Enhance the code that the animation notifies in order to call a function at a precise moment
  • Practice creating animation blueprints and retargeting

Let's get started!

主站蜘蛛池模板: 邵东县| 五莲县| 本溪市| 中西区| 将乐县| 宜章县| 拜泉县| 金华市| 瓦房店市| 长泰县| 大宁县| 论坛| 榆中县| 澄江县| 新野县| 句容市| 洪泽县| 社旗县| 高阳县| 本溪| 哈巴河县| 乐清市| 台江县| 江都市| 琼海市| 玉屏| 肥西县| 临泽县| 永春县| 那曲县| 昭觉县| 贡山| 双城市| 保康县| 城固县| 肃南| 汉寿县| 连平县| 镇巴县| 邛崃市| 瓮安县|