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

Setting up the project

Let's open up Unreal Engine 4! We will begin with the first process of creating a new project.

Note

We will use Unreal Engine 4.6.0 throughout this book. The instructions may vary per version. We will present the idea behind our actions as we demonstrate them using Unreal Engine 4; so, hopefully, you will be able to translate the instructions as you see fit.

Here, we will use the Third Person Shooter template, which allows us to easily observe how the character moves in the environment. Perform the following steps:

  1. Go to the New Project window if you aren't there already:
  2. Select the Third Person blueprint project:
  3. Name your project as you see fit; I've named mine ImprovedAI. Then, hit Create Project in the lower-right corner of the window.

Environment

Even though we are using the Third Person blueprint template, these techniques can be used on other templates as well. You must adapt what you learn here. That being said, what you start to understand is that these techniques are tools. Understanding how to create a state, sensory component, navigation component, and so on is generally perceived to be the same thing, but what is used, and how it is used, is dictated by the AI environment.

Prerequisites

Note that my windows and function names are different. I will run you through my settings so that you can have the same setup as I do. Here are the steps to perform:

  1. Let's go to General | Appearance within Editor Preferences and under User Interface, select the User Small Tool Bar Icons option and unselect the Show Friendly Variable Names option. Your settings should look like the following screenshot:
  2. Navigate to the Blueprints folder within the project:
  3. Now we will possess our pawn. Right-click and hit the Blueprint option to create a blueprint:
  4. Next, we will create our AIController class. Go to Custom Classes and type AIController. Select it and then click on Select, as shown in the following screenshot:

This will create the blueprint, and I named it MyController here.

主站蜘蛛池模板: 肃南| 和平县| 武陟县| 赤峰市| 云南省| 龙陵县| 南涧| 五常市| 土默特右旗| 山东省| 扶沟县| 肥城市| 九江县| 锡林郭勒盟| 塘沽区| 景洪市| 三原县| 资源县| 南丰县| 长子县| 澄迈县| 南华县| 额尔古纳市| 当雄县| 无为县| 洱源县| 伊春市| 仁怀市| 榆社县| 高淳县| 富源县| 淮南市| 屯昌县| 略阳县| 无极县| 徐水县| 泽库县| 根河市| 乌审旗| 镶黄旗| 吉林市|