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

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).

主站蜘蛛池模板: 乳源| 读书| 镇远县| 张北县| 乌拉特前旗| 东乡县| 乌兰浩特市| 麻阳| 沁水县| 洛南县| 兴文县| 贞丰县| 察雅县| 辽宁省| 台东市| 陕西省| 商河县| 海南省| 广元市| 永靖县| 晴隆县| 无锡市| 澄江县| 香格里拉县| 平昌县| 鄂托克前旗| 贡山| 三门县| 唐河县| 汾西县| 平罗县| 广汉市| 肥城市| 平和县| 临安市| 三门县| 出国| 咸阳市| 蒲城县| 广宁县| 兖州市|