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

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.

主站蜘蛛池模板: 西华县| 开封市| 长海县| 蒙自县| 景东| 林芝县| 彭州市| 普定县| 柞水县| 汤阴县| 育儿| 宽甸| 南康市| 白沙| 天长市| 册亨县| 蒙城县| 延川县| 湘乡市| 西宁市| 安徽省| 田东县| 明溪县| 溧水县| 绵阳市| 鄯善县| 霍州市| 乌拉特前旗| 专栏| 邯郸县| 林甸县| 娄底市| 秦安县| 于田县| 吴忠市| 迁西县| 碌曲县| 富宁县| 香河县| 卓资县| 西和县|