- Unreal Engine 4 AI Programming Essentials
- Peter L. Newton Jie Feng
- 241字
- 2021-07-16 12:48:39
Goal
Our goal for this chapter is to place an AI character in the level that has the blueprint to instruct it to move randomly and indefinitely. We will demonstrate multiple techniques throughout this chapter to get a good grasp of some really basic AI techniques commonly featured in titles. These techniques are listed as follows:
- First, we want to place an AI character, Hero, in the level that has the blueprint to instruct it to move randomly and indefinitely. We will achieve this by first creating a new third-person project and naming it appropriately. We will then use the default pawn provided from the sample content as the bot. We will create an AIController to control our pawn. We will then provide our AIController with instructions to move our bot randomly and indefinitely.
- Second, we want to make the AI character follow some basic path. For example, we'll have the AI move along the walls in one direction. We can take our existing project and modify the AIController with new instructions. From there, our AI will now move along the walls in one direction indefinitely.
- Third, we want to make a new enemy AI character that will chase the first AI character we made—that is, Hero.
Tip
We will have to make additional changes to Hero to give it the ability to run directly away from Enemy.
Enemy will simply be instructed to move toward Hero every second.
推薦閱讀
- Learning SQL Server Reporting Services 2012
- 電腦軟硬件維修大全(實(shí)例精華版)
- 電腦常見問題與故障排除
- INSTANT Wijmo Widgets How-to
- 硬件產(chǎn)品經(jīng)理成長手記(全彩)
- 電腦軟硬件維修從入門到精通
- 單片機(jī)系統(tǒng)設(shè)計與開發(fā)教程
- 筆記本電腦使用、維護(hù)與故障排除從入門到精通(第5版)
- 固態(tài)存儲:原理、架構(gòu)與數(shù)據(jù)安全
- Hands-On Artificial Intelligence for Banking
- 筆記本電腦維修實(shí)踐教程
- VMware Workstation:No Experience Necessary
- Managing Data and Media in Microsoft Silverlight 4:A mashup of chapters from Packt's bestselling Silverlight books
- 單片機(jī)原理及應(yīng)用:基于C51+Proteus仿真
- 電腦橫機(jī)使用與維修