Creating a Follow NPC Quest in Unreal Engine 5
In this Unreal Engine 5 tutorial, I show how to create a Follow NPC task for quests, using the patrol path system from a previous video. You’ll learn how to set up the task, manage optional failure distances, and add dialogue when you’re out of reach. This step-by-step guide is perfect for enhancing your quest systems with dynamic follow mechanics. Don’t forget to like and subscribe for more UE5 tutorials!
Enjoy the tutorial and happy developing
🔹 Auto size comments plugin: (not sponsored)
https://www.fab.com/listings/fdb7e77d-be37-4feb-a6c9-60e317c10adf
🔹 My Links:
👉 https://linktr.ee/d3kryption
🔹 My Setup:
👉 OS: Manjaro Linux
👉 CPU: Intel Core i7-4790K @ 4.00GHz
👉 GPU: Nvidia GeForce RTX 3090 24GB
👉 RAM: 16GB
👉 Headphones: Audio Technica ATH-M50X
👉 Mic: Audio Technica AT2020
👉 DAC: Behringer UMC22
👉 Keyboard: Keychron Q3 QMK with Krome Keycaps - Pudding rainbow kanji-hiragana caps
👉 Mouse: Logitech G403
🙌 Don't forget to like, comment, and subscribe for more game development tutorials. Hit the bell icon to stay updated with our latest videos!
🔹 Chapters:
0:00 - Intro
2:25 - Plan
4:05 - Adding paused to NPC
4:45 - Updating state tree
7:25 - Debug stopping code
13:13 - Duplicating level
15:20 - Creating the task
15:51 - Narrative quest breakdown
17:06 - Task plan
18:01 - Auto resize comments
18:54 - Task plan continued
20:11 - Getting the NPC
21:44 - Setting patrol point
23:16 - Basic quest
24:27 - Player distance checks
27:12 - Testing distance
28:29 - Stopping the NPC
29:39 - Starting the NPC
31:20 - Adding dialogue
33:12 - Testing dialogue
34:08 - Failing quest
37:09 - Testing failing quest
37:29 - Patrol lap finishing
40:10 - Completing the quest
42:32 - Tidy up
43:00 - Optionals
43:58 - Patreon
44:08 - Testing optional
46:19 - Narrative task description
47:17 - Result
48:18 - Minor changes
49:00 - Outro