MENU

Fun & Interesting

AI spawner for Lyra : teams, pawn data and how to make them fight in UE5! NPC spawning Part 1

NanceDevDiaries 6,510 2 years ago
Video Not Working? Fix It Now

I've been wanting to add AI/NPC to my project for a while and finally figured out a solution that works for me! I wanted to share here my knowledge and how Lyra handles AI spawning and pawn data in general. ⭐ join https://www.patreon.com/NanceDevDiaries for perks (credits, ad-free videos, early access, newsletter) This is a part 1 or 3, I'm planning on covering creating an NPC only team in the next one then how to spawn lyra character with abilities that don't have a PlayerState in the next. Game on! Part 2 at : https://youtu.be/aGz9Jmapq7I Part 3 at : https://youtu.be/uR6y6Tc8dm8 Github code at : https://github.com/NanceDevDiaries/Tutorials/tree/main/AISpawnerPart1/Source/LyraGame Project used: Lyra Sample project 5.2 Engine used : Unreal Engine 5.2 Shoutout to this amazing video to help me figure out my audio settings : https://www.youtube.com/watch?v=Rp-6F8SWFSY ⭐Ad-free version at : https://www.patreon.com/posts/117516137 Join my Patreon to get video credits and if you'd like to give thanks! https://www.patreon.com/NanceDevDiaries Thanks for watching! --------------- Timestamps: 00:00 - Intro 02:09 - How spawning AI works in Lyra 10:33 - C++ for spawning AI : Spawner and logic to get the Pawn Data 18:42 - Setup the spawner and data in BP and DataAssets 33:09 - Outro, closing thoughts

Comment