Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Unreal Engine 5.6 AI Tutorial #19 (Sep 2025) Behavior Tree NPC Chase, Attack & Return to Spawn

Автор: Amar Sen

Загружено: 2025-09-03

Просмотров: 167

Описание:

🎮 Unreal Engine 5 AI Tutorial | Behavior Tree NPC Chase, Attack & Return to Spawn

In this episode, we build a complete AI Behavior System for an NPC enemy using Behavior Trees, Blackboards, and Gameplay Abilities in Unreal Engine 5. Step by step, I’ll show you how to make your NPC chase the player, attack, and then return to their original location once the player is defeated.

🔑 What We Covered in This Tutorial:

Setting up Behavior Tree & Blackboard

Created a Behavior Tree (BT_NPC) to control decision-making.

Created a Blackboard (BB_NPC) to store variables like Target Actor and Initial Location.

Explained how selectors, sequences, and decorators decide AI actions.

Connecting AI Controller to Behavior Tree

Used the AI Controller to run the Behavior Tree once it possesses the NPC.

Implemented logic to detect the player using the Perception System and assign them as the Target Actor.

NPC Chasing the Player

Added the Move To task so the NPC chases the player when detected.

Configured acceptable radius for smoother chasing.

Setup a NavMesh Bounds Volume to enable AI navigation.

Equipping & Unequipping Weapon (Gameplay Ability System)

Built a custom BT Task to activate Gameplay Abilities directly from the Behavior Tree.

NPC equips weapon when spotting the player.

NPC unequips weapon and waits when the target is lost.

NPC Attacking the Player

Triggered light attack ability when NPC reaches the player.

Added random wait times before attacks for more natural behavior.

Detecting Player Death & Stopping Attacks

Created a BT Task to check if Target Actor is dead.

Used Gameplay Tags (State.Dead) to identify death.

Cleared Target Actor so NPC stops attacking after the player dies.

Returning to Original Location

Stored NPC’s spawn location in the Blackboard as Initial Location.

After unequipping weapon, NPC returns to spawn point and resumes idle state.

✅ Final Behavior Achieved:

NPC patrols idle until the player is detected.

NPC equips weapon, chases the player, and attacks.

When the player dies, NPC unequips weapon and returns to spawn.

📌 Why This Matters:

Behavior Trees and Blackboards make AI decision-making modular, visual, and easy to debug compared to hardcoded logic. Combining this with the Gameplay Ability System (GAS) gives you powerful control over AI combat behaviors in action RPGs.

🔥 More Unreal Engine Tutorials Coming Soon!

Next, we’ll expand this system to include:

Blocking & parry mechanics ⚔️

Smarter combat decision-making 🧠

Advanced enemy states like retreating or group behavior 👥

#UnrealEngine5 #UE5AI #BehaviorTree #Blackboard #GameplayAbilitySystem #UnrealEngineTutorial #UE5Tutorial #UnrealEngineAI #NPCChase #NPCCombat #UE5RPG #UnrealEngine5Tutorial #AIperception #UE5GameDev #UnrealEngineRPG #GameDevelopment #UnrealEngineAICombat #UE5EnemyAI

Unreal Engine 5.6 AI Tutorial #19 (Sep 2025) Behavior Tree NPC Chase, Attack & Return to Spawn

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

Делаем NPC в Unreal Engine 5 (Искусственный Интеллект)

Делаем NPC в Unreal Engine 5 (Искусственный Интеллект)

КАРТЫ ЗЕЛЕНОГО ЭКРАНА УЖЕ МЕРТВЫ 😵 Unreal Engine 5.7 меняет ВСЕ🤯💥COMPOSURE 3D Композитинг Часть 2

КАРТЫ ЗЕЛЕНОГО ЭКРАНА УЖЕ МЕРТВЫ 😵 Unreal Engine 5.7 меняет ВСЕ🤯💥COMPOSURE 3D Композитинг Часть 2

Get a closer look on the ZAX chair for cafés, restaurants and hotels

Get a closer look on the ZAX chair for cafés, restaurants and hotels

Tutorial 17 | Unreal Engine 5.6 (Aug 2025) | AI Controller + Perception (Sight) with GAS Replication

Tutorial 17 | Unreal Engine 5.6 (Aug 2025) | AI Controller + Perception (Sight) with GAS Replication

Порталы не создают вечный двигатель, если телепортировать гравитацию

Порталы не создают вечный двигатель, если телепортировать гравитацию

I Started Building a Horror Level… With YOUR Ideas

I Started Building a Horror Level… With YOUR Ideas

Behavior Trees Are Surprisingly Controversial | DevLog

Behavior Trees Are Surprisingly Controversial | DevLog

Самый дорогой в мире ИИ против Blender

Самый дорогой в мире ИИ против Blender

Почему визуальные эффекты такие дорогие?

Почему визуальные эффекты такие дорогие?

Бесплатная генерация фото и видео + Бесплатный ComfyUI. Как работать в Комфи без видеокарты.

Бесплатная генерация фото и видео + Бесплатный ComfyUI. Как работать в Комфи без видеокарты.

Unreal Engine 5.7 Motion Matching Tutorial (Complete Setup Guide) Dec 2025

Unreal Engine 5.7 Motion Matching Tutorial (Complete Setup Guide) Dec 2025

Как некомпетентная графика создает фальшивый реализм и почему ваш мозг это ненавидит.

Как некомпетентная графика создает фальшивый реализм и почему ваш мозг это ненавидит.

Как я сделал вирусное видео с помощью Google VEO 3 — Новый уровень нейросетей! #veo3 #ai #sora #flow

Как я сделал вирусное видео с помощью Google VEO 3 — Новый уровень нейросетей! #veo3 #ai #sora #flow

Ускоренный курс по Unreal Engine 5.7 MEGAPLANTS #реклама

Ускоренный курс по Unreal Engine 5.7 MEGAPLANTS #реклама

НЕЙРОСЕТИ VS BLENDER 3D / МЫ ПРОИГРАЛИ

НЕЙРОСЕТИ VS BLENDER 3D / МЫ ПРОИГРАЛИ

How to Use Azure DevOps with Unreal Engine 5.6 + Git (July 2025 Setup Guide)

How to Use Azure DevOps with Unreal Engine 5.6 + Git (July 2025 Setup Guide)

ВЕСЬ UNREAL ENGINE ЗА 5 ЧАСОВ | Курс для новичков в Unreal

ВЕСЬ UNREAL ENGINE ЗА 5 ЧАСОВ | Курс для новичков в Unreal

Witcher 4 Baked Water Simulation Tutorial in Unreal Engine 5.6

Witcher 4 Baked Water Simulation Tutorial in Unreal Engine 5.6

How I Simulate Over a Million Persistent NPCs For My Procedural City

How I Simulate Over a Million Persistent NPCs For My Procedural City

Easily Make Ai Animals That Chase And Flee In Unreal Engine

Easily Make Ai Animals That Chase And Flee In Unreal Engine

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]