Enemy Horde Wave System - Unreal Engine Tutorial

Поделиться
HTML-код
  • Опубликовано: 15 янв 2025

Комментарии • 101

  • @dorkman135
    @dorkman135 3 года назад +32

    FIXED!!! for everyone with the regular "they dont chase me" problem. Something he doesnt cover in the video is that you most likely need to place a 'Nav Mesh bounds Volume', this will tell the game where the character can patrol in. Search for in in place actors, place one in your level and in the details go to brush and scale it using that, not using the regular scale parameters we always use. HOPE THIS HELPS!

    • @jonnyk402
      @jonnyk402 2 года назад

      I cant find Nav Mesh Bounds Volume any tips?

    • @victoirelotika8687
      @victoirelotika8687 2 года назад

      @@jonnyk402 look at 7:42 in the place actors tab there is volumes with in volume look for Nav Mesh bounds Volume it is all one word like this NavMeshboundsVolume

    • @timboslice5351
      @timboslice5351 Год назад

      @Grog Is the AI controller set?

  • @pterafier
    @pterafier Год назад +1

    Bro has a tutorial for everything. I thought I'd be on my own for this but here you are lol

  • @officialrhythmicthoughts
    @officialrhythmicthoughts 3 года назад +13

    Now I can finally add a horde mode into my game pogging irl

    • @MattAspland
      @MattAspland  3 года назад

      That's great to hear man

    • @germanslice
      @germanslice 3 года назад +2

      @@MattAspland I wonder if you can add different enemy classes also to this code like Regular, Medium, Champion Classes of Different enemy Types, an also enemy levels as well. And also set the density level of the spawn to scatter the enemies. But there also has to be a cap limit to the spawn as you can't have too many enemies on the screen spawning at once. Or you can add an array to spawn different enemy class types within the group.
      There's also the other type where that you put the spawn enemy group into the level and it only spawns in an enemy group when you come into the FOV camera view range (Sacred 2) they fade into view so you can have enemy groups appear randomly around you in the map as
      you move the player through the area.

  • @emirisik
    @emirisik 3 года назад +5

    Hey mate, I've followed the tutorial exactly but my enemies spawn one by one whatever I do. Why could this be? Cheers, top notch content!
    EDIT: If you are also having this problem with your custom enemies, be sure to set the Collision Handling Override inside the spawner to be "Try adjust location but always spawn" instead of "Default". This fixed it for me, again thanks for the video!

  • @hossam_nowiser
    @hossam_nowiser 3 года назад +4

    Thank you 💕
    Hungry for more tutorial from you
    You make things look easy

    • @MattAspland
      @MattAspland  3 года назад +1

      Always happy to help mate!

  • @YuaASMR
    @YuaASMR 3 года назад +11

    Very nice, I can see a lot of people using this!
    Good job :3

    • @MattAspland
      @MattAspland  3 года назад +1

      Thanks a lot!

    • @YuaASMR
      @YuaASMR 3 года назад

      @@MattAspland You're very welcome!

  • @Equ1no0x
    @Equ1no0x 3 года назад +7

    I literally need this, thank you Matt!

  • @muhendisbibey
    @muhendisbibey 3 года назад +2

    This was what i need in my game. Thanks dude, right in time.

    • @MattAspland
      @MattAspland  3 года назад

      That's great to hear man, happy to help! :)

  • @fathom2339
    @fathom2339 2 года назад +1

    seriously a gem of a channel, so much info for us beginners (: is there anyway you could make a video/point me in the right direction of the prop way to setup a weapon master class that i could base other weapons on, having different stats like damage,rpm,range,recoil things like that

  • @thegiantguy
    @thegiantguy 3 года назад +11

    Some additions to this that could be cool would be:
    AI spawn locations with a player distance check, so they don't spawn right next to the player.
    A wave highscore counter?

    • @Bev493
      @Bev493 2 года назад +1

      Id be interested in a score counter as well

  • @pufisd
    @pufisd 3 года назад +6

    You can read minds for sure bro :)

  • @Morris_Minor
    @Morris_Minor 2 года назад

    very useful channel that has helped me with my course 👍 great content

  • @thegiantguy
    @thegiantguy 3 года назад

    Another great tutorial Matt!

  • @g-dojjo
    @g-dojjo 3 года назад

    Nice and clean tutorial bro!Thankss for this :3

  • @stevenwynn819
    @stevenwynn819 3 года назад +1

    Another helpful tutorial. Keep it up!

  • @Nernage
    @Nernage 3 года назад

    Nothing short of amazing!

  • @armandolemus9792
    @armandolemus9792 3 года назад

    Awesome and entertaining tutorial and thank you for sharing your knowledge, maybe for the next videos you can make a tutorial on how to create a cinematic or sequence to start a game for example when the player rises from the ground and already takes control of one of the player, greetings and good tutorial!

  • @z.o.d3328
    @z.o.d3328 3 года назад +4

    Niceee

  • @edjonhadley1
    @edjonhadley1 2 года назад

    Thank you Matt!

  • @kigwil9495
    @kigwil9495 3 года назад

    You always post just what we need :)
    Although, I am struggling with a certain issue. For my game I want a player who's in a top down view that can spawn enemies for other players to fight. I have everything working but the enemies always spawn at 0, 0, 0. I've tried getting it so they spawn where the player is or where the cursor currently is, but nothing seems to work, do you have any idea where I'm going wrong?

  • @bigbruh4626
    @bigbruh4626 3 года назад +3

    Hey Matt great video! I was wondering how you would make it so the waves stop spawning after a certain point. Like say, you kill 5 waves of enemies, the spawner stops? Thank you

    • @TuckAndRun
      @TuckAndRun 2 года назад

      I would also like to know! Been looking all over google and Unreal to find a solution to a Tower Defense where enemies stop spawning and the level/game ends.

    • @vssalas7
      @vssalas7 2 года назад +1

      @@TuckAndRun with a boolean, once it checks if the enemies are 0, also make a counter to count up each round, once you get to 5 stop it there

  • @syahidbaddry3009
    @syahidbaddry3009 3 года назад

    i really need this,thanks matt here like for you

  • @primitivepatterns
    @primitivepatterns 3 года назад

    thanks per usual! this will be handy for sure :) do you think you could do a tutorial on making custom shaped health bars? maybe even just simple circular ones

    • @MattAspland
      @MattAspland  3 года назад +1

      Happy to help Ada! :)
      And I think this video might help you out! :)
      ruclips.net/video/uTP116pbdAg/видео.html

  • @mdcclub
    @mdcclub 3 года назад +2

    How they will colide to the character and attack him and also how to change there mannequin.

    • @MattAspland
      @MattAspland  3 года назад +1

      Hey, what do you mean by that?
      And to change the mesh you can open up the AI blueprint, select mesh, and choose your new one you want to add

    • @mdcclub
      @mdcclub 3 года назад +1

      @@MattAspland thanks

    • @mdcclub
      @mdcclub 3 года назад +1

      @@MattAspland can you make a video on enemy ai system and also there animation in ue4

  • @MyDisal
    @MyDisal 2 года назад +1

    Can you please test this along as you go, like first set up the enemy ai and show now this is following the player. Then go on to the next steps. That way we can get an idea that some functionality is working and it's easy to map the functionality of what happens and when it happens. When you do the whole thing at once and show the end result it feels like magic and can be hard to follow for some. Just an opinion on how you can improve.

  • @PrettyUndergroundGame
    @PrettyUndergroundGame 2 года назад

    Hi, Matt! Thanks for doing a great job. Do you happen to know any simple way to make a fog of war feature in UE? I feel like this topic is not really covered in any tutorials I found on YT, even though it seems to be a pretty basic feature seen in many, many games.

  • @aliciaredmarr
    @aliciaredmarr Год назад +1

    Idk why my dispatcher is not firing the event so the enemies are not spawning (I'm using UE5)

  • @DRAWKCABLLA
    @DRAWKCABLLA 2 года назад

    5:12 did you just forget to explain the code in the enemy AI?

  • @noisyether9211
    @noisyether9211 3 года назад

    Thank You!!!

  • @kamitekeiichi2376
    @kamitekeiichi2376 Год назад +1

    this is not working in unreal 5. any idea why?

  • @ФедорСимонов-ф1ч
    @ФедорСимонов-ф1ч 3 года назад

    thank you

  • @tableprinterdoor
    @tableprinterdoor 3 года назад +2

    With an extreme amount of enemies later on would this not cause alot of performance drops?

    • @MattAspland
      @MattAspland  3 года назад +1

      It could cause that yeah, this would be different for each PC, the complexity of the AI, and the number of AI too. You could maybe have a limit to the amount that spawn at a certain point, and instead increase their health instead of the number of AI spawning once you reach the limit.

    • @tableprinterdoor
      @tableprinterdoor 3 года назад

      @@MattAspland Got it, yeah I'll think about adding a limit

  • @melonrf1343
    @melonrf1343 2 года назад +1

    hey matt
    could you make a video on how to increase the enemy health each wave?

    • @dustynoob2971
      @dustynoob2971 2 года назад

      Set a health var on the AI, when the for loop has completed on the spawner get actor from class, the class being the AI and increase the health var.

  • @Anonymous-mf8ip
    @Anonymous-mf8ip 3 года назад

    Wow this is cool! I have a problem though, my enemy AI is in a crawling position but in the Character class you can't rotate the capsule component, the capsule an only be vertical, awesome video though:)

    • @MattAspland
      @MattAspland  3 года назад

      Thanks a lot man, and if you select the capsule component, you can change the capsule radius and half height to get it working better for you. Or you could rotate the mesh instead of the capsule component, and then rotate the whole actor to look correct.

    • @Anonymous-mf8ip
      @Anonymous-mf8ip 3 года назад +1

      @@MattAspland thanks so much this solved the problem:)

  • @abdullahsohail5395
    @abdullahsohail5395 3 года назад +4

    Nice video

  • @javiersalazar8226
    @javiersalazar8226 Год назад +2

    For some reason the enemies are not spawning, help, currently using UE 5.0

  • @nagisa3523
    @nagisa3523 Год назад

    what is the unreal engine 5 version of the integer - integer? im not able to find it currently

  • @gamesbyaaron
    @gamesbyaaron 6 месяцев назад

    Is there a way to spread the enemies out from an individual spawner?

  • @CommanderColson
    @CommanderColson 3 года назад

    How could you put a cap on the amount of enemies? As in, once it hits 20, it only spawns 20 ai each wave going forward? That way you don't eventually start spawning 1000000000000000000 ai at once

  • @PollederBoss
    @PollederBoss 3 года назад

    nice, but when they spawn, they stuck in each other. mydefault collision handling override dont work like in the tutorial.

  • @WiccanWarrior63XD
    @WiccanWarrior63XD 2 года назад

    Im having issues where my Ai spawns and is able to be killed by other AI around it when it spawns. Any fix?

  • @sivas3926
    @sivas3926 3 года назад

    Can you make some tutorial on how the enemy can die with a gooey blast

  • @drakebennett9169
    @drakebennett9169 3 года назад

    Hey I loved this video and it helped a lot, but was just wondering how I could make them run a behaviour tree instead of just chasing the Character? I already had a behaviour tree set up for my original NPC_Enemy and he would walk around searching for me and then when he sees me he would run and chase me. Now he only runs to random locations and doesn't register Can See Player and chase me anymore?

  • @thearizonianwolf3010
    @thearizonianwolf3010 8 месяцев назад

    I dont think anyone will reply to this, but ive encountered an issue. I kill my enemies with a projectile, the one placed in the level works and dies easily, but the spawned ones dont take damage and dont die, any suggestions?

  • @spedbol9722
    @spedbol9722 Год назад

    Great vid but for some reason my enemies just stop moving after colliding with the player

  • @XxbennythebeastxX
    @XxbennythebeastxX Год назад +1

    Could you do this for UE5?

  • @philipsloth6600
    @philipsloth6600 3 года назад +1

    Will this work for VR? if and how can i make it so i can kill the enemies with my axe for example
    Edit: i did the exact same thing, and i did put my VRGAMEMODE In, but the enemyAI still doesnt work

  • @El-Hombre-Random
    @El-Hombre-Random 5 месяцев назад

    for some reason dont work for me

  • @reesaac5334
    @reesaac5334 Год назад +1

    it doesnt work, even it ddoesnt spawn

  • @charzxd6515
    @charzxd6515 3 года назад +6

    LMAO what this is sick

  • @ohtontheknight3879
    @ohtontheknight3879 Год назад

    So how do limited how many can be spawn for a each round

  • @propalmer5097
    @propalmer5097 2 года назад

    My enemies spawn in the same spot and go flying

  • @glockdogdev
    @glockdogdev Год назад

    I am having an error that says "Infinite loop detected" Anybody know how to fix this?

  • @jonnyk402
    @jonnyk402 2 года назад

    Does this work On UE5 i have tried but for some reason the enemy Ai wont follow me!

  • @shadowknight8725
    @shadowknight8725 Год назад

    Wondering if anyone were to see this comment, but just curious is it possible that if each wave can have a certain delay for example Wave 1 > 30s pause (Free roam) > Wave 2

  • @bluegodstopper
    @bluegodstopper 2 года назад

    i watch the video twice to see if i messed up and cant see the ai in the fp template

  • @WB-jb3uc
    @WB-jb3uc 3 года назад

    First of all thank you for this great work ❤❤
    😥 I have been searching for a long time for
    How can i make ghost catch the player
    Then the video ( jumpscare ) play
    like this games
    1- Pacify
    2- Devour
    I hope you can help me in One of your Tutorial 😏😊

  • @head3ad
    @head3ad 3 года назад

    I have triple-checked but the enemies don't move after I cast to game mode and it in simulation it stops there. if I don't cast to game mode or use the increments and stuff every thing works fine. can anyone please help. I have tried nav mesh. Thanks in advance !

  • @AHabib1080
    @AHabib1080 2 года назад

    Okay, tell me what if there was 500 Horde Npc's?
    You didn't Perform any optimization at all.
    Please Make a Video about How to optimize npc's so that (500 Npc's) they can be view In a single scene without frame Loss.

  • @DIGIFOREAL
    @DIGIFOREAL 2 года назад

    how tf u make an enemy cuz im trying to duplicate the thirdperson character and move himinto his own folder but i cant and yhow do u change is color this isd all important stuff u think would be ina tutorial

  • @sp3ky288
    @sp3ky288 3 года назад

    the enemys cant move??

  • @RobinDale50
    @RobinDale50 3 года назад

    could this handle Left 4 Dead level/quantity of enemies?

    • @MattAspland
      @MattAspland  3 года назад +1

      It all depends on the PC specs, complexity of AI, and the amount spawned. But it should be able to handle a fair amount. If it gets too laggy at any point, you could limit the amount of AI that spawn, and then increase their health and damage etc instead

  • @Umar-wk5pw
    @Umar-wk5pw 2 года назад

    How can I change it so that the AI die by the first person projectile instead of it colliding with the player and dying

    • @dustynoob2971
      @dustynoob2971 2 года назад

      do you still need help with this?

    • @Umar-wk5pw
      @Umar-wk5pw 2 года назад

      @@dustynoob2971 No haha ended up making a different AI this would’ve been nice to use but I had a deadline for uni

  • @yamasaa
    @yamasaa 3 года назад +3

    *horde

    • @MattAspland
      @MattAspland  3 года назад +2

      Thanks man, I can be terrible at spelling sometimes lol

  • @nand-studios
    @nand-studios Год назад

    der beste

  • @rickydonnelly2425
    @rickydonnelly2425 2 года назад

    Is there a way I can do this without using the "game mode" bp? - For a project on uni coursework as i cannot edit the game mode bp's is all.
    Thanks in advance anybody :D

  • @TheCoder-o2d
    @TheCoder-o2d 2 года назад

    it doesnt work

  • @sp3ky288
    @sp3ky288 3 года назад

    THNX!!!!!!!!!!!!!!!!!11