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

The AI Controller to run a Behavior Tree

The next step is to run the Behavior Tree from an AI Controller. Usually, this is an easy task that it is implemented in Blueprint (in which it is possible to directly refer to a specific Behavior Tree). Even if we have a complex C++ AI Controller, we can extend the controller in Blueprint and Run the Behavior Tree from Blueprint. In any case, if a hard reference doesn't work (e.g. you are using C++ or because you want to have more flexibility), then you can store the Behavior Tree in the Character/Pawn that needs to run that specific Behavior Tree, and retrieve it when the AI Controller possesses the Pawn.

Let's explore how we can do this both in Blueprint (we will reference the Behavior Tree in a variable, in which we can decide on the default value) and in C++ (in which we will store the Behavior Tree in the Character).

主站蜘蛛池模板: 呼玛县| 新竹市| 宾阳县| 兴和县| 荆州市| 江安县| 太白县| 海晏县| 东丽区| 根河市| 达拉特旗| 密云县| 长沙市| 宁陵县| 电白县| 平南县| 绵竹市| 九龙坡区| 甘洛县| 咸宁市| 上高县| 乌拉特后旗| 丰宁| 凤翔县| 五莲县| 永年县| 定远县| 博乐市| 青川县| 财经| 西充县| 东辽县| 镇巴县| 沁阳市| 博客| 宁都县| 皋兰县| 睢宁县| 定结县| 龙江县| 沂南县|