How to Change AI Movement Speed with BEHAVIOUR TREE in the GAME ANIMATION SAMPLE | Unreal Engine 5

Описание к видео How to Change AI Movement Speed with BEHAVIOUR TREE in the GAME ANIMATION SAMPLE | Unreal Engine 5

This video is a follow up to my last video (linked below) where I show you how to update the NPC Movement Speed using Behaviour Tree in the Game Animation Sample from Epic Games.

Link to Previous video:    • How to add an AI NPC with BEHAVIOUR T...  

The Game Animation Sample doesn't come with any NPC characters, and we need to tweak a few things in order to get it to work with an AI Controller and Behaviour Tree. The Behaviour Tree I use in this video is very simple and is only intended to demonstrate how to get started setting up one of the characters so that you can take advantage of the Motion Matching animation blueprint with NPCs.

LEARNING PRE-REQUISITES: Basic knowledge of Behaviour Trees, Blueprint Interfaces, and Event Dispatchers.

00:00 - Overview
01:01 - Cause of the problem
03:04 - Minor mistake fix
03:29 - Create Enum, Character Variable, and Blueprint Interface
06:20 - Implement Interface and create Interface Event
07:37 - Add custom code to 'Get Desired Gait' function
09:24 - Refine Behaviour Tree and Blackboard keys
11:24 - Create Behaviour Tree Task - (BTTask_MoveToPlayer)
13:26 - Create Behaviour Tree Service (BTService_SetNPCMoveSpeed)
15:00 - Change NPC Movement Speed from Behaviour Tree
15:50 - Add code to update Blackboard Boolean Key (CanSeePlayer)
17:17 - Bind Event Dispatcher to CanSeePlayer
18:21 - Update Blackboard Value as Bool
19:38 - Play Test Result
20:17 - Summary and Outro

Комментарии

Информация по комментариям в разработке