Unreal Engine 4 - AI Basics & Patrolling (Easy Method)

Поділитися
Вставка
  • Опубліковано 25 січ 2025

КОМЕНТАРІ •

  • @Beardgames
    @Beardgames  4 роки тому +21

    Just thought I'd mention that I go a bit slower this video in terms of descriptions and information I give you. I try to go as quick as possible in my tutorials but part of the reason I went a bit deeper into the information side this video was so you guys could really get an understanding of AI. Take the clip at 6:30 where I breakdown the tasks as an example, I did it like this so when you guys want to create your own AI tasks you understand how to do it and can follow the same procedure. Break down what you want the AI to do in a list (pseudocode), then tackle each task 1 by 1 logically following on from your list. So apologies if I went a bit slow, I'm here to give you that EPIC fast ULTRA cut information so you can get straight to the good stuff but I'm also here to make sure you can adapt what I teach in my tutorials into your own projects... Thanks guys and see you in the next episode :D
    - Jon / BeardGames

  • @nicholasbroggi9944
    @nicholasbroggi9944 2 роки тому +1

    This video is great. It's short enough to learn something quickly while including enough information to understand what you're talking about.

  • @TheGhos1Face
    @TheGhos1Face 4 роки тому +1

    Missed your vids my dude! Awsome as always

    • @Beardgames
      @Beardgames  4 роки тому +2

      Haha thanks amigo, been pretty busy! thanks for being patient :D

  • @neyverh123
    @neyverh123 3 роки тому

    You The Real MVP I was looking for this I just need an advanced version of this to understand more.

  • @DemonicDevilDiran
    @DemonicDevilDiran 2 роки тому

    Should be made clear this is for "Character" class BPs exclusively, since Pawns don't have the option to select Splines as shown at 11:08.

  • @Preirin
    @Preirin 2 роки тому +1

    Thank you for some excellent tutorials! You mention starting with Tutorial 18-18.4 but I can't seem to find anything titles in that manner in your playlist. Can you direct me to them, please? Also, do these tutorials work with 4.27? Ta!

  • @seango584
    @seango584 3 роки тому +6

    Hi Beard, it's me again! I followed your video, and the only problem I've had is that my NPC is not actually moving (the mesh is moving on the other hand). Does it have to do with me changing the character reference variable to NPC? Thanks again :)

    • @cardcadiastore
      @cardcadiastore 3 роки тому +1

      Have you found the solution?

    • @seango584
      @seango584 3 роки тому +2

      @@cardcadiastore, yeah I did. I realised that the box encompassing the NPC was actually too high, so I moved it lower and the NPC began moving. Just a silly mistake I made.

    • @pnkdrmmr
      @pnkdrmmr 3 роки тому

      @@seango584 Thank you.

  • @SpencerHoude
    @SpencerHoude 2 роки тому

    love your videos, and your name... as I am indeed a bearded man. Although I have an issue with adding the "get location" at 11:41. I can add it into the GetSplineLocation BP but it doesn't have an area to attach it to the Target-Spline Path. Am I doing something wrong? any insight would be greatly appreciated.

  • @pure4821
    @pure4821 Рік тому

    Hi beard, from what I understand the spline actor made should have the cube made travel along it, when I simulate nothing occurs, I made sure it had no collision but it still did not move, I don't know what to do, please help

  • @Pontos420
    @Pontos420 3 роки тому +4

    I am still working my self through your videos here :) Great job! Thank you!
    I wonder how to controll the NPC speed on the path so that he is not in the running state but in the walking state for example.
    Tomorrow I have more time to watch all your videos :D

  • @mauriciosilva1631
    @mauriciosilva1631 4 роки тому +2

    you are the best! thank you so much for sharing your knowledge each teaching is very precious. thank you so much!

  • @unrealdevop
    @unrealdevop 3 роки тому

    At 11:53 you have us make a 'Blackboard Key Selector' but you didn't bother explaining why you did that. I'm a bit confused because I was thinking you grabbed the blackboard from the 'Owner Controller' and then passed in the Key Name from there.
    Never mind you answered my question at 13:21

  • @reinspieler
    @reinspieler 4 роки тому +3

    Dont finished the 30 day’s series but nice Video like every video

  • @BooneyianLogic
    @BooneyianLogic Рік тому

    I had the npc following the cube, I loaded it up on another day. And I cant seem to figure out why the npc wont move, its doing the walking animation, and the spline ref is set to the bp_AI_Spline. I fixed this by making sure I have a NavMesh Bounds Volume

  • @ApocalypsFroid
    @ApocalypsFroid 2 роки тому

    how i can create a new point in spline ?

  • @mr.raider744
    @mr.raider744 2 роки тому

    you know that it works when you see the beardgames intro

  • @GoldBerry510
    @GoldBerry510 3 роки тому

    Thank you very much, it really worked. Your explanations are very good and although BT is complicated I could understand a little more.

  • @SoloGameDeveloper
    @SoloGameDeveloper 3 роки тому

    Can I get the same results with normal blueprint?
    I feel like there's no advantages to go with behavior tree

  • @strickerarts
    @strickerarts 2 роки тому

    So I manage to get the spline ref but its not letting me connect it to the Cast NPC. How do I fix this? Please help.
    This is in the Get Spline Event graph.

  • @xXESproductionsXx
    @xXESproductionsXx 2 роки тому

    I'm trying to find tutorial 18 - 18.4, but it's not laid out that way on your channel. where do I start?

  • @reinspieler
    @reinspieler 3 роки тому

    Worked very Well and good tutorial (Beardgames: I have decided to do only the episodes that i want my game to be)

  • @thrices4372
    @thrices4372 2 роки тому

    can't find the tutorials videos

  • @darkcaper3dmodels951
    @darkcaper3dmodels951 3 роки тому +1

    Hi :) I have been following the tutorial, the box moves around the spline when I press play but the character does not follow, any suggestions?
    found problem, in my version of UE4 the blackboard makes a self ref by default, once deleted it all worked fine. :) nice tutorial

    • @ivangeorgiev2684
      @ivangeorgiev2684 3 роки тому

      Unfortunately, I have the same problem and it seems as though the box mesh is following the spline only halfway, which is a bummer and the character is standing still. Any suggestions? I have tried lots of different solutions, but there is still a problem. If all goes to hell, I will try and use the files provided in the video and retarget the character I want for a NPC. Thank you for everything, your videos really do make a difference!

  • @thedrumlover251
    @thedrumlover251 3 роки тому

    could you make the ai stuff a playlist?

  • @mauriciosilva1631
    @mauriciosilva1631 3 роки тому

    Beard I have a doubt nothing to do with this tutorial I noticed that you use it a lot (For each loop whith Break) so... if I'm going to do a project myself under what circumstances can I use it?

  • @chanceharlon2173
    @chanceharlon2173 2 роки тому

    I cannot get the npc to follow the mesh, any help would be appreciated

  • @JoseManuelRodenes
    @JoseManuelRodenes 3 роки тому

    I don't know why but it gives me an error in the variable is Accelerating? In the animation BP of my main character not from the npc that I copied, I tried to change the name to the variable so that it was not the same as the variable of my main character, but it does not work it keeps giving me that error, I guess in the animbp from npc will there be something that still refers to the animbp of the main character having made a copy, please did someone else pass this on? Thank you very much; On the other hand, your tutorials are very good, thank you very much for your help and srry for the language, I don't know English srry ..

  • @varungandhi8796
    @varungandhi8796 4 роки тому +1

    I was wondering why this video got reuploaded because I saw it before in your playlist. I think what happened was, you uploaded it, made it link only for patreons, then accidentally added it to your playlist so anyone going through it could see the video

    • @Beardgames
      @Beardgames  4 роки тому +1

      Hahah I made the mistake adding it to the playlist yeah. It's fixed now😅 well spotted😉

  • @nierautomata9654
    @nierautomata9654 3 роки тому

    I got a question 🙋‍♂️ why did you add a static mesh cube in the spline? What is it for? Will the AI still move through the spline without that cube? Thanks

    • @Beardgames
      @Beardgames  3 роки тому +1

      Purely so we could see the current location in the spline😁 feel free to remove it haha

    • @nierautomata9654
      @nierautomata9654 3 роки тому

      @@Beardgames gotcha 👍😁 thanks!

  • @DreaMeRHoLic
    @DreaMeRHoLic 3 роки тому +3

    Have to say that it's not helpfull if you say at 1:22 "we need what we made over the last episodes" if your videos dont have episode numbers.
    Dude, you made about 40 videos before this one....i mean i can guess but....
    At 1:52 you talk about 18 to 18.4 , but there is no 18.... or 18.4

    • @redking8585
      @redking8585 3 роки тому

      Yeah....lol what was that about. I'm looking for the videos.

  • @SylarAtomic
    @SylarAtomic 2 роки тому

    Thank you for this!

  • @v1zzle
    @v1zzle 3 роки тому

    Very greate tutorials body! you are best!! thanks from Russia!

  • @varungandhi8796
    @varungandhi8796 4 роки тому +1

    Hey love your videos and how you simplify unreal and explain it so well, so I wanted to ask how would one go about trying to remake a dbz game in unreal engine? Like what are the basic steps and where do I start and all that. The specific game I'm talking about is Dragon Ball Z Budokai Tenkaichi 3. You could look up a short gameplay of the game if you want if don't know the game but it's basically a fighting game with special powers

    • @Beardgames
      @Beardgames  4 роки тому +1

      Thanks Varun. You'd probably just make the character as third perskn characters and basically copy them over to NPCs when youve got the functionality working. All I can really explain without doing an entire video on it :)

    • @varungandhi8796
      @varungandhi8796 4 роки тому

      @@Beardgames Alright thanks and yeah I thought I was asking for a little too much for a simple comment, sorry about that

  • @realdlps
    @realdlps 4 роки тому +4

    Awesome video as always :) Sadly got my ai made before this video came out.

    • @Beardgames
      @Beardgames  4 роки тому +2

      No problem at all my man :D

  • @SathishKoththolla
    @SathishKoththolla 3 роки тому

    Hi bro. Great job. Are you gonna make a full game tutorial with all the RPG logics and systems and package it bro? You're doing massively awesome job.

    • @Beardgames
      @Beardgames  3 роки тому +2

      Thanks a lot Sathish really glad you're enjoying the content! I've finished with this 30 topic tutorial series which is basically a RPG starter kit, check my playlists for it. But i will be doing more RPG stuff in the future for sure :)

    • @SathishKoththolla
      @SathishKoththolla 3 роки тому

      @@Beardgames that's awesome bro, I'll check the playlist now. 😍 I wanna learn Mele combat system and Objectives quest system 😀🙏

  • @dawidsniegon203
    @dawidsniegon203 3 роки тому

    Hi, I'm following everything you do in this vid, but whenever I hit play, the NPC doesn't act the way it's supposed to. I'm getting an error saying "Accessed None trying to read property SplinePathRef" from the Get Spline Location function. I assume the location is not storing somehow at spline path ref (public variable inside NPC). The box is moving ok. In Spline Pathway BP the Location is SET and is saving there (tried Printing to check). But when I Print from NPC BP, accessing the SplinePathRef --> Location - it's always 0. What could be the problem?

    • @Beardgames
      @Beardgames  3 роки тому

      Hey Dawid! So your issue is that you've not set the spine inside your variable. Check out this video and it will explain everything and really give you an understanding of how to fix these issues in the future 😊 ua-cam.com/video/nPBg6VmxImY/v-deo.html

    • @dawidsniegon203
      @dawidsniegon203 3 роки тому

      @@Beardgames Hey, wow, thanks for such a quick response! You were right about the issue and the vid you suggested solved the problem. Great tutorials by the way ;)

  • @rizchaud
    @rizchaud 3 роки тому

    Hi, please how to loop the spline ? my IA stop walking when he do once. :/

    • @Beardgames
      @Beardgames  3 роки тому +1

      If you select the spline I think there is a closed loop option, either that or you can close it with a BP node :)

    • @rizchaud
      @rizchaud 3 роки тому

      @@Beardgames thanks for the answer

  • @A.J.Interactive
    @A.J.Interactive 3 роки тому

    Hello this tutorial was really helpfull! although, i am using it with als v4, and for some reason the character just keeps moving forward, but the cube goes along the spline, any help would be appreciated : )

    • @A.J.Interactive
      @A.J.Interactive 3 роки тому

      edit: i fixed it, it was the space on the get location, now i just need to find out why my ai stops moving before the cube

  • @overlandgames
    @overlandgames 2 роки тому

    hey, thanks for great tutorial. Got me closer then i've come in a minute. When i set the timeline to 4 seconds, and the second timeline point to 4 seconds, my guy runs along the path for a few seconds, stops, turns around, runs two or thre steps, turns back around then runs again. I had the cube hidden in game, because i didn't realize it's function. so I turned visibility back on and i notice the guy starts running down the spline, then the cube comes from the opposite direction, blazes past the guy, causing him to turn around towards the cube for a second, then he runs back down the path a ways, then the cube passes him again, and he stops turns takes a few steps back, turns, repeat. been through the tutorial 3 times, not sure what i've missed. :(

  • @KDmadness18
    @KDmadness18 3 роки тому

    How do I download your project correctly? I downloaded it and opened it but the project is basically just a new project and is missing everything you added.

    • @Beardgames
      @Beardgames  3 роки тому

      Hmm this could be the UE4 version. The download in the description should be a direct download for the project. The only reason I can think of that the files aren't there is if it's opened with an earlier version of UE4. I'm using 4.25, which version are you using?

    • @KDmadness18
      @KDmadness18 3 роки тому

      @@Beardgames yeah I’m also using 4.25. I can see the files but when I open the project it’s as if the files aren’t connected. I was thinking maybe I have to reconnect the repository? I’v never downloaded someone else’s project before so I’m new to this

    • @Beardgames
      @Beardgames  3 роки тому

      @@KDmadness18 When downloading a project it should work exactly the same as how you can see your own project. Make sure you unzip the project and open it up just like you would your own :)

    • @KDmadness18
      @KDmadness18 3 роки тому

      @@Beardgames ah okay forsure I’ll unzip the files and try it again when I get the chance, thanks

    • @KDmadness18
      @KDmadness18 3 роки тому

      @@Beardgames Yeah it worked, where can I find your BT and the other AI components? I don't see your NPC file as shown in the video

  • @HavokBWR
    @HavokBWR 2 роки тому +1

    Ugh why cant ANY tutorial start out with a blank character?? Everyone starts out with the 3rd person template and then if you try to follow any of these tutorials without it youre completely FKED...

  • @NephariusAMG
    @NephariusAMG 3 роки тому

    My AI is just gliding across the floor. It’s not implementing the anim that i made.

    • @SilverArrowFilms
      @SilverArrowFilms 3 роки тому

      You forgot to cast the npc from your animation blueprint =)

  • @costa3951
    @costa3951 3 роки тому +1

    If this is the easy way, then I've got a lot more research to do before all this.

  • @simonmcnutt1705
    @simonmcnutt1705 3 роки тому

    Hey, thanks for the video. I think you go a little to fast on things, do fast manipulations without explaining why you do it, which makes hard to follow. I wasn't able to understand a lot of things. But thanks for your job!

    • @Beardgames
      @Beardgames  3 роки тому +2

      Sorry if I go a bit quick for ya McNutt! I try to keep a fast pace for viewers who want to speed through it, I thought it was better to go quick and for viewers who want it slow to pause or slow down the video slightly. I'm still trying to get the balance right heh :) Thanks for watching and supporting the channel though!

    • @simonmcnutt1705
      @simonmcnutt1705 3 роки тому

      @@Beardgames no problèmes! You still helped me a lot! Thanks

  • @faris_diz
    @faris_diz 3 роки тому

    Thanks for this and i want to tell you that you should talk a bit slower in your tutorials, no need to hurry

  • @AeonSaturnal
    @AeonSaturnal 3 роки тому

    Man, this isnt working for me.

    • @Beardgames
      @Beardgames  3 роки тому

      Sorry to hear Aeon! Give me some ideas of what's not working, maybe I can help :)

    • @AeonSaturnal
      @AeonSaturnal 3 роки тому

      @@Beardgames I appreciate your attentiveness! Well I restarted my project and all my nodes just simple started working, like magic 😤

    • @Beardgames
      @Beardgames  3 роки тому

      @@AeonSaturnal Love to see it. Good job :D

  • @sakulmore1844
    @sakulmore1844 Рік тому

    The video is completely about nothing. You just do, but you don't explain what you do and why it works the way you do. You only explained in this video what BT, BB and how to create a new AIController. But you explain e.g. what the different nodes mean, not anymore.
    This video is literally just that "Copy this and use it. I won't explain it."

  • @visioncorp5228
    @visioncorp5228 3 роки тому

    You are going way to fast.

  • @AT77Real
    @AT77Real 2 роки тому

    667 like