Smart Enemy AI | (Part 3: Perception) | Tutorial in Unreal Engine 5 (UE5)

Поділитися
Вставка
  • Опубліковано 15 чер 2024
  • In this Unreal Engine Game development Tutorial you will learn the following:
    - AI Perception: How to setup the AI Perception component
    - Sight: How to get the enemy to attack when seeing the player
    - Sound: How to get the enemy to go investigate a location where sound came from
    - Damage: How to get the enemy to respond to getting damaged and attack the damaging actor
    Link to my Patreon (Thank you for your support)
    / alizoh
    Link to part 1 of the "Smart Enemy AI" tutorial:
    • Smart Enemy AI | (Part...
    Link to the "Damage System" tutorial:
    • How to Build a Combat ...
    Link to the "Projectile System" tutorial:
    • How to Shoot Projectil...
    Link to my "AOE Damage & Healing" tutorial:
    • How to do AOE damage a...
    About me:
    I've been learning game development for over a year now, I do have a background in software engineering, but I've always wanted to create my own game.
    I am currently working on this 3rd person action adventure game as a hobby, but I am also trying to build a community, thus I am creating UA-cam tutorials to find others who are interested in game development and design.
    If you are interested in learning more or if you are interested in working together, please let me know in the comments.
    Join my Discord server to chat and mingle with the community
    / discord
    If you would like to support me on Patreon, you will get access to all the source code from every video I post as well as any custom assets that I create. Also I would be forever thankful to my early adopters
    / alizoh
    Checkout my other tutorials on my channel:
    / @alielzoheiry
    Chapters:
    00:00 Outcome of this part
    00:59 Recap of the last part
    01:26 AI Perception component
    02:06 Sight Sense Setup
    04:20 AI Debugger
    07:03 Hearing Sense Setup
    08:18 Make Noise Function
    11:22 Damage Sense Setup
    12:02 Report Damage Event
    14:17 Responding to Sensing an Actor
    24:05 Attacking the Player When Seeing them
    28:07 Investigating a Sound
    36:54 Stealth Simulation
    38:31 Responding to Damage
    40:46 Next Up in Part 4
    #unrealengine #unrealengine5 #ue5 #gamedev #smart #enemy #combat #AI #blueprint #tutorial #behavior #tree #perception #state
  • Ігри

КОМЕНТАРІ • 389

  • @brianpearson8552
    @brianpearson8552 5 місяців тому +46

    This is actually some of the best Unreal engine content on ANY complex subject I have ever found on youtube. This series is amazing completely blowing any course I've ever taken on A.I. out of the water and is one of the most indepth tutorials of Unreal Engine A.I. out there. Wonderful job mate, please don't ever stop!

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому +4

      Thank you so much for your kind words! I'm thrilled to hear that you find the content helpful and valuable. I truly appreciate your support and encouragement!

    • @omegablast2002
      @omegablast2002 2 місяці тому

      @@AliElZoheiry I absolutely agree with that guy, i've been using unreal for almost 6 years now, your tutorials are spectacular. on par with Mathew Wadstein, Thank you for being so concise, and yet still getting right to the point with every topic and subtopic. know that even advanced UE users are appreciating what you are doing here.

  • @Zero-Skillz
    @Zero-Skillz 2 місяці тому +5

    Paid tutorial "Set Sphere Collider. Make it big. Aggro anything that enters it" UA-cam tutorial remakes AI from The Division 2 and does it in a way even my oonga boonga brain can digest. Well done and you have my thanks and admiration.

    • @AliElZoheiry
      @AliElZoheiry  2 місяці тому +2

      You're very welcome! I'm glad you found it helpful. Thank you for your kind words and support! 🙏

  • @adriantome278
    @adriantome278 5 місяців тому +21

    Amazing tutorials, are so helpful. I have a few recomendations:
    1. You could use a function to Get the Stimulus Class and its easier to handle the logic.
    2. To change the debug input go to Project Settings - Engine - Gameplay Debugger
    3. To re-enable the Print String functions write "EnableAllScreenMessages" on the console command at the bottom of rhe editor
    Thanks for the tutorials, keep going 😁

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому +3

      Hey Adrian, Glad you found this helpful 🙏 and thank you so much for the tips, I'll be sure to keep them in mind.

    • @electronicinfection
      @electronicinfection Місяць тому

      Thanks!

  • @pterafier
    @pterafier 6 днів тому

    thank you so much for this series. It's the best on youtube for AI by far

    • @AliElZoheiry
      @AliElZoheiry  5 днів тому

      Thank you for your kind words! I'm thrilled to hear that you found the series helpful. Your support means a lot to me 🙏

  • @JayTheDevGuy
    @JayTheDevGuy 7 місяців тому +11

    Insanely helpful tutorial. I especially appreciate how much you showed off the AI debugging tools. I can't thank you enough for all the work this series must have taken to put together.

    • @AliElZoheiry
      @AliElZoheiry  7 місяців тому +3

      Thank you Jay, I'm very happy you're finding this useful. I definitely put a lot of effort into each video, I appreciate that you see that 🙏

  • @Shizuma450
    @Shizuma450 Рік тому +15

    Without exaggerating, this youtube channel is frustrating...
    To see such a high quality of video on such a complicated subject (at least for me, the subject of AI is something that's not usually dealt with in such depth on UA-cam or even on the training courses I've taken on Udemy) is simply amazing.
    (When I compare this tutorial with the majority of paid training courses... I'm completely impressed)
    Thank you, you really help me to understand this subject much better, I had lost hope of finding a tutorial of such quality!

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +7

      You are very kind Eurg, thank you so much for the support. I do put a lot of effort into making these videos without much expectations in return, so it really motivates me to see comments like this and to see that it's helping people. I hope you enjoy the rest :)

  • @sajjadmirshabi
    @sajjadmirshabi Рік тому +11

    OMG Ali your Tutorials are amazing, the codes you make in blueprint are very understandable and optimized. Good luck mate. I hope you reach 1K very soon to monetize your channel. You really deserve it. Can't wait for the next part I learn horrible EQS in such easy way 😍😍

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +3

      Thank you so much Sajjad. Really happy to see that my hard work is helping you and I will continue to do my best

  • @DanielSouza-zp9gg
    @DanielSouza-zp9gg 5 місяців тому +1

    The BEST tutorial of AI that I ever saw in youtube! Thank you so much and keep up bring these amazing tips!

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому +1

      Hey Daniel, thanks so much for your comment, I really appreciate you 😊 🙏

  • @crisppxls
    @crisppxls Місяць тому

    As well as being a fantastic guide to the AI system in Unreal, These tutorials are an absolute goldmine of tips, techniques and best practices. Really useful stuff man. Can't thank you enough!

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому +1

      Thank you so much for your kind words! I'm thrilled to hear that you find the tutorials helpful. Your support means a lot to me 🙏

  • @raduvady
    @raduvady 7 місяців тому

    you are doing an amazing job, your tutorials are extremely good, I've watched a lot on unreal tutorials and yours are my favorite, logical design, great approach, very well explained, even the pronunciation is top notch, hope you will get the appreciation you deserve. thank you 🙏

    • @AliElZoheiry
      @AliElZoheiry  7 місяців тому

      Thank you so much for saying that Raduvady, I really appreciate you. And I'm happy to hear that you're finding this content useful 🙏

  • @coryclark2894
    @coryclark2894 4 місяці тому +1

    I never leave comments. Ever. You get one - Keep it up my friend, your teaching style and tutorials are the best I've experienced. The speed, the topics, the explanations, and your clear preparedness to understand what you are doing is all spot on. I'm hungry for more and will be sad when I complete your available content. You are going places if the rest is this quality. Thanks for the help

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому

      Thank you so much for taking the time to leave this comment! I'm truly grateful for your kind words and am thrilled to hear that you're finding my tutorials helpful. Your support means a lot, and I'll definitely keep creating more content for you!

  • @inkgs
    @inkgs 8 місяців тому +2

    One of the best channels about UE Thank you, Ali!

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому +1

      You're very welcome! Thank you for watching, I really appreciate the support 🙏

  • @sjrulz14
    @sjrulz14 Рік тому +1

    Thank you for the tutorials. You are explaining nicely. Easily understandable. Please continue this video series.

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +3

      Thank you Sj! Really happy you found it useful and I will definitely continue the series, stay tuned ;)

  • @Snafuey
    @Snafuey Рік тому +1

    By far you have the best UE tutorials!

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

      Thank you so much Snafuey. I really appreciate your support

  • @NightmareKingGames
    @NightmareKingGames 10 місяців тому +3

    I was recommended this by someone else in the unreal engine masterclass (unreal Sensei) and dear god this is great. great tutorials, well explained, looking forward to more

    • @AliElZoheiry
      @AliElZoheiry  10 місяців тому +1

      Wow, thank you so much, very glad you liked it 🙏 Was it UA-cam that recommended my videos, or an actual person 😅?

    • @NightmareKingGames
      @NightmareKingGames 10 місяців тому +1

      @@AliElZoheiryan actual person, your yt channel actually when I was looking for it after it did not really show up, which is yt overshadowing the best tutorials with the more crummy ones

  • @buga125
    @buga125 3 місяці тому

    One of the best tutorials I've seen in UE5, even with my custom enemy with custom animation bps and player character I'm able to do everything correctly. Love this series!
    Also "If the opponent is.. dead for example they shouldn't attack me" cracked me up a little:)

    • @AliElZoheiry
      @AliElZoheiry  2 місяці тому

      Thank you! I'm happy to hear that you found the tutorial helpful and that it worked with your customized setup. Glad you enjoyed the series, there are definitely some funny moments in there that weren't scripted 😂

  • @Akushinjr
    @Akushinjr Рік тому +5

    The quality of your tutorials is really incredible, I'm amazed by the level presented in your videos.
    Honestly, the subject of AI is not an easy one to tackle, and yet you're very pedagogical and really manage to explain things precisely.
    Thank you very much for this excellent tutorial.

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

      Wow, Thank you so much Shadow for your kind words and support 🙏 I really appreciate it, and I'll make sure to put out more content like this.

  • @oscblade1691
    @oscblade1691 Місяць тому

    First of all thank you Ali for these tutorials honestly I have watched a lot of different UA-camrs and their tutorials and yours is the best.
    Also for anyone running into the same issue I was having with the damage perception not showing in the debugger.
    First make sure you have a value for the damage amount.
    Second I had two ai in my level and I believe it did not know which one I was trying to damage and so nothing registered. Once I deleted one of them from the level it worked. Probably need a tag or id for each enemy or overlap event to let it know which is being damaged.

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому +1

      Thank you so much for your kind words! I'm glad you found the tutorials helpful. Also, thanks for sharing the tips on resolving the damage perception issue! 🙏

    • @oscblade1691
      @oscblade1691 Місяць тому

      @@AliElZoheiry np

  • @user-mr6ne3ep5p
    @user-mr6ne3ep5p Рік тому +1

    Very nice AI tutorial, it helped me a lot ! thank you !

  • @soulz-fn4230
    @soulz-fn4230 Місяць тому

    M8 Your acc the goat i swear best tutorials i ever found and always clear and concise. keep doing what you doing legend!

    • @AliElZoheiry
      @AliElZoheiry  29 днів тому

      Hey, thank you so much for your kind words! I really appreciate the support and I'm thrilled to hear that you're finding the tutorials helpful. Will definitely continue to create more content for you all! 🙏

  • @user-pn3ut7rw6c
    @user-pn3ut7rw6c 4 місяці тому

    Thank you for the tutorial. You are explaining nicely. Easily understandable.

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому

      Thank you for the kind words! I'm glad you found the tutorial helpful and easy to understand. If you have any more questions or need further assistance, feel free to ask!

  • @Xsabino1
    @Xsabino1 10 місяців тому

    Your teaching is amazing, explains perfectly. thank you very much

    • @AliElZoheiry
      @AliElZoheiry  10 місяців тому

      You're very welcome 😇 and thank you for the support and kind words 🙏

  • @misfire8771
    @misfire8771 4 місяці тому

    as always such a fantastic tutorial, your channel is the shinning example of UE5 educational content,

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому +1

      Thank you so much for your comment. Your support means a lot to me 🙏

  • @majupiju2347
    @majupiju2347 2 місяці тому

    Perefect!
    Everything worked very smoothly without bugs ;D
    And I even managed to implemented the preseption system to work with the previous created abilities from AOE and Projectiles tutorials ;D
    Which shows me that I'm actually learning something and not bluntly following your steps. This for sure speaks for your teaching methods!
    Cant wait to continue after dinner :)
    cheers!

    • @AliElZoheiry
      @AliElZoheiry  2 місяці тому

      Hey, that's fantastic to hear! I'm thrilled to hear about your successes. It's great to know you're learning and adapting the knowledge. Enjoy your dinner and looking forward to hearing about your progress after! Cheers!

  • @ashensamurai8072
    @ashensamurai8072 Рік тому +1

    This is by far the best tutorial on enemy AI , thank you so much, on every tutorial i have an issue where AI bump into each other when fallowing the player, i hope you can touch on that in this series, 🙏

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +1

      Thanks alot Ashen! I briefly touched upon the subject of having many enemies in the level, and that for that use case you should probably use the "Detour Crowd AI Controller", but I will try to touch upon it nearing the end

  • @AVerdadeReconfortante
    @AVerdadeReconfortante 7 місяців тому

    Amazing tutorials!!! I'm learning a lot! Keep doing :)

    • @AliElZoheiry
      @AliElZoheiry  7 місяців тому

      Thank you 🙏 glad you're learning from my videos, hope you enjoy the rest

  • @callatogames
    @callatogames 11 місяців тому

    Great Tutorial again, i loved this series :)

    • @AliElZoheiry
      @AliElZoheiry  11 місяців тому

      Thank you! Always happy to see that it's helping 🙏

  • @perrobravomx4206
    @perrobravomx4206 8 місяців тому

    Super useful! thanks again, great tutorial as usual!

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому

      My pleasure! Glad you liked it

  • @alawlol5459
    @alawlol5459 9 місяців тому

    Thank you, man! I learned a lot with your videos

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому

      Thank you for watching, glad you're finding them useful 🙏

  • @deltacake3809
    @deltacake3809 Місяць тому

    Thanks for the tutorial, great video

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому

      You're very welcome! Thank you for your comment 🙏

  • @Alternatywny_1
    @Alternatywny_1 27 днів тому

    I just realized that after this particular episode, I can start creating simple mobs for some hack'n'slash game :D

    • @AliElZoheiry
      @AliElZoheiry  24 дні тому

      That's great to hear! I'm glad you found the episode helpful for your game project. Good luck with creating the mobs for your hack'n'slash game! 🎮

  • @matka5130
    @matka5130 6 місяців тому

    EPIC quality...can confirm it works...thank you

    • @AliElZoheiry
      @AliElZoheiry  6 місяців тому +1

      You're most welcome Matka 🙏 glad you found it useful

  • @proxima7199
    @proxima7199 10 місяців тому

    thank you, as usually - the awesome tutorial

    • @AliElZoheiry
      @AliElZoheiry  10 місяців тому

      You're very welcome! Glad you liked it 🙏

  • @SantosThePerson
    @SantosThePerson Рік тому +1

    great tutorial, really helpful and very well explained! Keep going with the hard work and if you ever make a tutorial about local co-op with various gamepads on UE5 or online multiplayer using EOS on UE5 that would be really fun and interesting to watch!!

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +1

      Thank you Gonçalo! Really happy you found it helpful. I'll definitely consider your suggestion, sounds interesting

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

      @@AliElZoheiry I have been watching some of your videos and they are insanely helpful and insightful so I'm eager to see more!

  • @robertoferreira4896
    @robertoferreira4896 5 місяців тому

    You are an excellent teacher!

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому +1

      Thank you Roberto😃I'm happy you found this educational

  • @zerul7729
    @zerul7729 24 дні тому

    Excellent video!

    • @AliElZoheiry
      @AliElZoheiry  20 днів тому +1

      Thank you so much! I'm glad you enjoyed it 🙏

  • @user-dt4uh4np9u
    @user-dt4uh4np9u 4 місяці тому

    감사합니다 선생님... 잘보고있어요. 오늘도 달려~!~~~!!!!!

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому

      감사합니다! 저의 비디오를 즐겨주셔서 감사합니다! 함께 달려봅시다!

  • @polymir9053
    @polymir9053 5 місяців тому

    Great series! I do have a suggestion though for anyone following the tutorial. There is already a function which pretty much does what is implemented with "Can Sense Actor". Its called "Get Currently Perceived Actors" and lets you choose a "Sense" to get actors for. This should be much faster than looping through the senses for each actor.

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому

      Glad you enjoyed it! And this system does indeed use the function "Get currently perceived actors"

  • @HunterFloris
    @HunterFloris 8 місяців тому +5

    4:26 For people having issues with their apostrophe key not showing up debug AI menu, it turns out that you have to change your keyboard settings on your computer's operating system. The keyboard on your OS needs to be set at US Standard. Anything else and Unreal most likely won't register it. Hope it helps.

    • @emmanuel.tavares
      @emmanuel.tavares 7 місяців тому

      And how to remap the keys of categories? There is no numpad here.

    • @allthefame37
      @allthefame37 7 місяців тому

      @@emmanuel.tavares If you're stil stuck on this, you'll have to go to Project Settings > Engine > Gameplay Debugger > Input and all those characters are there if you need to change them

    • @WhatIsMyPorpoise
      @WhatIsMyPorpoise 4 місяці тому +1

      thank you, not everyone one uses the same keyboards

    • @WhatIsMyPorpoise
      @WhatIsMyPorpoise 4 місяці тому

      @@emmanuel.tavares to change keybindings, you need to look into project settings, under gameplay debugging.

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

    just finished thanks alot again!

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +1

      Glad you found it helpful! See in the next one ;)

  • @bordercollie_gamestudio
    @bordercollie_gamestudio 3 місяці тому

    Let me hit the 1k like. Thank you so much man! Keep your great work!

    • @AliElZoheiry
      @AliElZoheiry  3 місяці тому +1

      Thank you so much for the support! I really appreciate it and I'm glad you're enjoying the content!

  • @DarkDreamCreations
    @DarkDreamCreations 7 місяців тому +3

    i don't understand why dude has 7k subs other channels can't do half of this dude does but they have around 50-80k subs with those funny open/close function BP's amazing man can't believe

    • @AliElZoheiry
      @AliElZoheiry  7 місяців тому +3

      Thank you for saying that. I appreciate the support, and hopefully I'll reach those 50-80k subs soon if people see the value of these videos ☺️🙏

    • @DarkDreamCreations
      @DarkDreamCreations 7 місяців тому

      @@AliElZoheiry i believe u will man your content's are amazing keep it up

  • @TROYSOLLY
    @TROYSOLLY 4 місяці тому

    Fantastic sir, god bless you.

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому

      Hey, thank you so much for your kind words! I'm really glad you found the content helpful. God bless you too! 🙏

  • @Cjoudan
    @Cjoudan 5 місяців тому

    this was amazing thank you!

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому +1

      You're very welcome! Glad you found this useful

  • @tucaja1240
    @tucaja1240 5 місяців тому

    The best, new patreon

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому

      Thank you so much! I really appreciate that 🙏❤️

  • @sirbottlekick1690
    @sirbottlekick1690 2 місяці тому

    BEST TUTORIAL EVER

    • @AliElZoheiry
      @AliElZoheiry  2 місяці тому

      Thank you for your kind words! I'm thrilled that you found the tutorial helpful. Your feedback means a lot to me!

  • @TheDevYah
    @TheDevYah Рік тому +1

    Oh my God this is so cooool!!!!
    Thank you

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

      Thank you so much Yahia! Glad you found it useful ;)

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

      If this video helped you, I would appreciate your support on Patreon www.patreon.com/Alizoh

  • @EmpathizeVortex
    @EmpathizeVortex 8 місяців тому

    this is what i need an in depth series on 1 certain thing not one 10 minute tutorial on how to do a simple behaviour tree then not knowing how to bug fix and solve issues along with expanding the tree

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому +1

      Really glad you liked it. I indeed try to go in depth and actually teach a subject, so that following my tutorials means you can create your own and not just copy and paste my code

    • @EmpathizeVortex
      @EmpathizeVortex 8 місяців тому

      @@AliElZoheiry exactly! I’m not using third person template And I have tried but I cannot figure out how to do Ai animations, the animation blueprint graph has to be set up differently to pawn and I can’t find anywhere how to fix it

  • @Rosefield3D
    @Rosefield3D Місяць тому

    Loving this series! Fun fact: Real humans have a FOV of about 135 horizontal and 180 vertical :D

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому +1

      Glad you're enjoying the series! That's a cool fun fact about human vision 😄

  • @BowDrawn115
    @BowDrawn115 Місяць тому

    Probably the highest quality tutorial I've ever seen. I love your vids!! One question tho, when I'm behind a wall and I make a sound, my AI is stuck in the Move To task and he just stands in place. I don't know why, same thing happens when damaging him from behind the wall I followed every single one of your steps and re-watched that part countless times

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому +1

      Hey there, thank you so much for your kind words and support! Not sure what the issue is, because the MoveTo shouldn't care about line of sight, as long as there is a path from the enemy to the player, the MoveTo should work correctly

    • @BowDrawn115
      @BowDrawn115 Місяць тому

      ​@@AliElZoheiry I'm so dumb, it was a problem with the nav mesh not covering the area I was testing in... it's always those small things that mess me up haha. Thank you for your help man, I'll definitely keep watching your videos and you already have my sub!

  • @stbnsnt
    @stbnsnt Місяць тому

    Great, thank you

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому

      You're welcome! Happy to help 🙌

  • @NewWillStudio
    @NewWillStudio 3 місяці тому +1

    Best teacher s2

    • @AliElZoheiry
      @AliElZoheiry  3 місяці тому

      Thank you so much for your kind words! I'm glad you're finding the content helpful 🙏

  • @fabexl5898
    @fabexl5898 2 місяці тому

    Keep up brother

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому

      Thank you for the encouragement! I appreciate your support 🙏

  • @sara-uh8xy
    @sara-uh8xy Рік тому

    Noice xD havent completed the ai but the other videos are easy to understand xD. Whats the next series about skill tree :D love that or maybe recreating game mechanics :)?

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

      Ohh recreating game mechanics is an interesting one indeed

    • @sara-uh8xy
      @sara-uh8xy Рік тому

      @@AliElZoheiry xD i can help u give a list of mechanics that ik arent available on yt right now

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

      @@sara-uh8xy sure, that would be very helpful 🙏

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

    You Will continué this saga of tutorials? Are interesting and very good explained🙌

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +1

      Thank you Trebla, I will indeed continue this. Tomorrow (or maybe tonight) I will release Part 4 on the topic of EQS

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

      @@AliElZoheiry thanks and blesses. What is the versión of unreal that you use and specific? Some options are diferent than mine. I have unreal 5.3

  • @pennaverdeful
    @pennaverdeful 3 дні тому

    Make sure you are the server when you fire Make Noise node, otherwise it will not work.
    Also, if the print text does not work, instead restarting the engine, you can type EnableAllScreenMessages in the game console and you are good to go

  • @electronicinfection
    @electronicinfection Місяць тому

    Great Video as usual.
    edit: Ok you'll cover this in a later video.
    Enemy should return to passive state if he can't see the player anymore. Did you cover this behaviour in the video?
    I guess we need to create another handle for that.

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому

      Yup, that was the "Forget target" behavior in part 9

  • @mikelkram
    @mikelkram 6 місяців тому

    cool tutorial

    • @AliElZoheiry
      @AliElZoheiry  6 місяців тому

      Thank you! glad you liked it 🙏

  • @tie.garcia
    @tie.garcia 4 місяці тому

    Thank you

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому

      You're very welcome! I'm glad you found the content helpful. Thank you for watching and commenting 🙏

  • @hernanferreira1537
    @hernanferreira1537 7 місяців тому

    Thanks for your tutorials! I wonder how you learned all this?

    • @AliElZoheiry
      @AliElZoheiry  7 місяців тому

      You're very welcome Hernan. I have a background in software engineering, and I've been working as a web developer for the past 10 years. But switching to game development was very very different, so I started learning from scratch using UA-cam tutorials, courses on Udemy, attending game dev meetups, and watching game dev conferences. My software engineering background definitely helped me pick up these concepts faster, but I still had to start from the very beginning

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

    amazing

  • @jedtanartkulprakrom4616
    @jedtanartkulprakrom4616 4 дні тому

    Teacher your Perception tutorial are amazing. Even complicated config function, You explain it very clearly even newbie like me can understand what this function can do.
    Also what is different about [Target] and [actor] in function Can Sense Actor mean, Isn't it the same that refer to self?
    PS.I just finished half of the Part 3 on to the set up thing and I got a big question in my head when teacher mentioned about C++ , So in the real process in making the game do I need to learn C++ to improve this function? Or I need to learn coding to understand more complicated thing ,Please guide me to the right path .

  • @xxrajeevxx
    @xxrajeevxx 3 місяці тому

    Ali, absolutely Amazing Tutorials and I love the pace you are running these and excellent content. Question, I created this blackboard on the base enemyBP and then created 2 child BPs, set their patrol route correctly, but only one of them actually utilizes the blackboard. the second one just stands still. any suggestions?

    • @AliElZoheiry
      @AliElZoheiry  3 місяці тому

      Hey there! Thank you for your kind words! Regarding your question, I'm not really sure what you mean by creating a blackboard on an enemy BP, blackboards are assigned to behavior trees only, and are accessed from an AI controller. So I'm not really sure what you mean :D

  • @juanarze
    @juanarze Місяць тому

    ¡Gracias!

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому

      Thank you so much for this Juan!! It means a lot to me 🙏🙏 I'm really happy you found the video useful 😊

  • @edodemerzel7032
    @edodemerzel7032 4 місяці тому

    Thank you for such detailed and consistent tutorials!
    In this video ForEachLoops nodes are used within some functions and events. Considering performance issues, does the ForEachLoop stop after the last array element is processed? Don't we need to set up loops breaking logic manually?

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому

      You're very welcome! I'm glad you're finding the tutorials useful. Yes, the ForEachLoop automatically stops after the last array element is processed, so you don't need to set up manual breaking logic. If you are looping over an extremely large array though (thousands of items) then I suggest using "For each with break" loop, which allows you to manually break from the loop once you have found what you're looking for in the array

    • @edodemerzel7032
      @edodemerzel7032 4 місяці тому

      @@AliElZoheiry Thanks!

  • @user-rp8hj7xy8x
    @user-rp8hj7xy8x 3 місяці тому

    Nice video, by the way ali, is it better to use 1 AI controller for all enemy? cause im thinking do i need to set up AI perception in each AI controller? or duplicate it? or each one should have a single separate AI controller? this goes for the behavior trees as well?

    • @AliElZoheiry
      @AliElZoheiry  3 місяці тому +1

      Thanks! Glad you liked it. Regarding your question, you can indeed create multiple AI controllers for different enemies, I actually do that at the end of the series, when I implement the boss, because the boss enemy has some unique perception and other things, so I create a child class of the base AI controller for the boss. Same with behavior trees, you’ll see that I create multiple behavior trees for each enemy type as the series progresses

    • @user-rp8hj7xy8x
      @user-rp8hj7xy8x 3 місяці тому

      Thanks for clarifying that, i think i asked you this early without watching the rest of the videos, ill do so to understand better @@AliElZoheiry

  • @TheDeathbyPurple
    @TheDeathbyPurple 2 місяці тому

    If anyone is getting errors when testing if the AI will see or hear you and go after you that deals with the blackboard returning none - just add an "? is valid" node before whatever the blackboard is connected to and plug the blackboard variable in there and it will work. It just needs to check before running the loop.

    • @AliElZoheiry
      @AliElZoheiry  2 місяці тому

      Thank you for sharing this helpful tip with the community! It's always great to see different solutions to common issues.

  • @vannessaborrero
    @vannessaborrero 2 місяці тому

    Love your tutorials! Hands down the best tutorials regarding enemy AI in UA-cam. I have just one question. How do I allow interruptions in the investigating state? For example, let's say you make a sound and the enemy begins to approach the area of the sound. If you create another sound at another location, I want the enemy to stop their route to the 1st sound and make way to the 2nd sound. I can't do that with the behavior tree in its current state, and I spent hours trying to figure this out with no solution as of yet. I thought a decorator might help, but it just freezes at the sound location. Any help is appreciated!

    • @AliElZoheiry
      @AliElZoheiry  2 місяці тому

      Hey there, thanks for your kind words! There is an option called "Notify Observer", by default this is equal to "On Value Change", and if you have "Observer Aborts" set to "self or both", that means that this branch will get interrupted if the "VALUE" of the decorator changes. But.. if you change the "Notify Observer" to be equal to "On Result Change". This will interrupt the branch anytime the variable is changed, EVEN IF the value itself didn't change. That means that if the "State" is "investigating", and then something happens and updates the state to "investigating" again. The decorator will still abort. That might be what you want to do. Try it out and let know.

    • @vannessaborrero
      @vannessaborrero 2 місяці тому

      @AliElZoheiry I tried this and it doesn't work 😔 I tried it in both the beginning sequence of the investigating tree and under each of the tasks.

    • @AliElZoheiry
      @AliElZoheiry  2 місяці тому

      It should interrupt if you have the observer abort set to self or both and on result change instead of on value change.
      But if it's not working then you can try a different solution, which is to add a 2nd decorator that checks if the value of the investigation location has changed, and if so, it interrupts and starts over

  • @TomasOMatias
    @TomasOMatias 10 місяців тому

    Hey Ali, thank you for the great tutorial! Just a question, for some reason my enemy when loses sight of me and the sight age is reached, he doesnt stop coming after me. Any idea on what might be causing this? Thank you

    • @AliElZoheiry
      @AliElZoheiry  10 місяців тому +1

      Hey, you're very welcome 🤗 Regarding the lose sight, I haven't implemented any functionality where the enemy changes state when they "forget" the target, I just explained how it can be done, I will be showing how to do this in a later part though, because it was requested by a lot of people, so stay tuned ;)

  • @user-wr5fh1xg1d
    @user-wr5fh1xg1d 3 місяці тому

    So far so good. I was able to implement everything you said though part 1, 2, 3. Thank you very much for posting it here for free! One question. So i have a door in my game but even if its open, the ai does not go through it. I made sure that the NavMeshBound is covering it. Do you think it has to do with the collision of the door?

    • @AliElZoheiry
      @AliElZoheiry  3 місяці тому

      Hey there, this is a common issue with nav meshes because they don't update automatically when something changes, like a door opening or a box moving. To update the navmesh you have to setup the door to be a navmesh modifier. Checkout this tutorial that explains that well ua-cam.com/video/0AQzDuRtZnM/v-deo.html

    • @user-wr5fh1xg1d
      @user-wr5fh1xg1d 3 місяці тому

      @@AliElZoheiryThank you! The link you sent helped me solve the issue and understand better wabout it.

    • @AliElZoheiry
      @AliElZoheiry  3 місяці тому

      @@user-wr5fh1xg1d glad to hear that it works now! Keep up the food work 💪

  • @freyaniczdigitalartist2303
    @freyaniczdigitalartist2303 9 місяців тому

    Hey Ali - do you think the 'get perceived' actors could work fine for sensing an actor? thanks for this tutorial series by the way, it's really incredible and I hope you continue.

    • @freyaniczdigitalartist2303
      @freyaniczdigitalartist2303 9 місяців тому

      To expand on what I mean - Basically 'On Perception Update' I use 'Get Perceived Actors + the sense', do a for each loop and check against player. So far it seems to behave the same and it's a bit more simple I think.

    • @AliElZoheiry
      @AliElZoheiry  9 місяців тому +1

      You're very welcome.
      I'm not sure what you mean by using that function to sense actors, that function just returns information on actors that were already sensed through the AI perception component

  • @DiaaAlhalabi376
    @DiaaAlhalabi376 5 місяців тому

    Thank you for this beautiful course, but I have a question. I want to understand un5 your triangle completely in order to do that. How did you learn it with this understanding? Do you memorize the methods or invent them?

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому

      Glad you're enjoying it!
      When learning, I didn't try to memorize anything, I kept googling everytime I wanted to do something, and I found myself googling the same thing over and over again until I memorize it. But the best way to learn, is to have an idea in your head that you want to build and keep researching, watch a lot of videos, keep trying different things. Trial and error is your best friend. If you are not making mistakes, then you're not learning

    • @DiaaAlhalabi376
      @DiaaAlhalabi376 5 місяців тому

      Thank you. I will do the same. I hope you continue these great chains. Great work. “The Godfather of un5”@@AliElZoheiry

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

    Do you think you could do some soccer tutorials? not only the basics of physical material and adding impulse with a input..., I mean things like attaching the ball and making it roll whith player, or changing possession when passing it to another pawn, I have knowledge but I don't know how to do it yet. I hope one day someone can teach this kind of tutorials, cause don't exist.

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +1

      I haven't done anything like that before to be honest, but if there is interest in the topic, I'd be willing to learn it and share my learnings in a tutorial

  • @MistahX99
    @MistahX99 4 місяці тому

    Amazing series thank you so much for the quality content. I only have one question. Whenever I trigger a second sound whenever the enemy is investigation he doesnt break out of the sequence and needs to finish moving to, waiting and resume patrolling before he can react to another sound. How can we break out of the sequence and make it move to the new location since it's not switching state?

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому +1

      Hey there, I'm happy to hear that you're enjoying the series! To address your question, to allow one branch in the behavior tree to interrupt another branch, then in the "Decorator" on the "Lower priority" branch you should set the "Observer abort" value to be "Both" which means that once the value of the decorator changes, it aborts itself and anything of lower priority

    • @MistahX99
      @MistahX99 4 місяці тому

      @@AliElZoheiry got you! Thank you for the reply not alot of UA-camrs take the time to do it

  • @HG-tu2xn
    @HG-tu2xn 3 місяці тому +1

    Thanks for free knowledge.
    I have a little question. when I duplicate this enemy on my level, should they work the same? but i have only one enemy working properly. or does Behavior Tree Only Work for One AI Character Spawned?
    ed: "get all actors of class"

    • @AliElZoheiry
      @AliElZoheiry  3 місяці тому +1

      Hey there, the behavior tree is not a global object, meaning that for each instance of an enemy in your level, there is a separate instance of the behavior tree. So you can have as many enemies as you want and each will run their own copy of the tree.

    • @HG-tu2xn
      @HG-tu2xn 3 місяці тому

      @@AliElZoheiry thank you👌👌 I think I made a mistake in my code

  • @DorianF-mt2cy
    @DorianF-mt2cy 5 місяців тому

    Hey Ali,
    Thank you for this amazing tutorial. I have question. When there is a small obstacle between the player and the AI, the AI Perception doesn't see the player and It's because the AI perception is locked on the center of the player character. Therefore, even if I'm standing up in behind a table, the AI can not see me.
    Do you know if there is a possibility to change where the AI perception targets the player please ?

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому +1

      Unfortunately with the default AI perception system, you can't change the location where the AI looks to. You'd have to build custom functionality for that or use a different plugin

  • @HeartsintheWind
    @HeartsintheWind 5 місяців тому

    Do you cover the allies, enemies, and neutrals on the perception piece? How does one use this system with these?
    Is there a way to make something like it for the blue print system?

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому

      In this series I only cover enemy AI behavior, but the tools and techniques used are the same for any type of AI

  • @canaanilmeledetto8823
    @canaanilmeledetto8823 6 місяців тому

    Hi Ali, thx a lot for ur tutorials, ur amazing!! I'm having an issue with hearing sensing: when the actor see me, after he loses me, if I make the noise, on the behaviour tree he stops at investigating state just a moment, and then restart the patrol, so he doesn't reach the "point of interest", otherwise, if he doesn't spots me, the investigating state works fine, what can be the problem?

    • @AliElZoheiry
      @AliElZoheiry  6 місяців тому

      Hey, I don't know what it could be, but it sounds like the investigation state is ending too soon, you need to debug why that is happening by following the execution flow to see what's going wrong

  • @kellowattentertainment
    @kellowattentertainment 10 місяців тому

    Love your channel bro. I have a few small issues, when the Ai goes into Attacking, he doesn't switch from attacking, he just keeps chasing the player even if the player can't be seen. I'm not sure that's ideal. If AI loses sight of the player, I'd like the AI to look around the last know location for a few seconds and then go back into passive if the player isn't seen. Is this addressed in future episodes?

    • @AliElZoheiry
      @AliElZoheiry  10 місяців тому +1

      Thank you 🙏 glad you like it.
      This behaviour you're describing is exactly what I did in Part 9 of this series, and I modified it a bit in Part 10 as well. Enjoy ;)

  • @jacopopolenta7623
    @jacopopolenta7623 Місяць тому

    Hey ali i appreciate so much your works! I have an answer and hope you can help me out. When i open the debugger my numpad doesn't work, im also on macbook and i have no number lock function (this obv limits me cause i cant see things like perception of my enemy) thank you for an eventual response and for all the tutorials!

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому

      Hey, thanks for reaching out! I'm glad you're enjoying the tutorials.
      You can reconfigure the key bindings in Unreal Engine by navigating to Project Settings -> Engine -> Gameplay Debugger and adjusting the input settings there.
      This will allow you to change the key bindings for the debugger functionalities, such as the perception of your enemy.

  • @19857nono
    @19857nono 13 днів тому

    Thank you so much for the tutorial! informative & helpful! Yet I have a problem I don't know why my enemy ai doesn't switch state when hearing a sound/sight. It works when debugging tool, but it stucks in the passive state in patroling even I am within sight or make a noise. Would really appreciate some help!!

    • @AliElZoheiry
      @AliElZoheiry  12 днів тому +1

      Hey there! Glad you found this helpful! Unfortunately I don't know what your exact problem is, but i suggest checking the conditions for switching states in the AI controller that they are being called as expected, and if so, then check the blackboard values and the decorator for switching states, that it is setup with the correct valuss

  • @AiligDev
    @AiligDev 29 днів тому +1

    Hey Ali, every time the enemy senses anything, it stacks. For example, if it sees me and hears me at the same time, when it sees me again, it will think it hears me and sees me. I'm wondering if you could have any idea what is going on. Love your tutorials. Edit: I think it was solely a problem with the print strings, because it hasn't affected gameplay to my knowledge.

    • @AliElZoheiry
      @AliElZoheiry  28 днів тому

      Hey there! Thanks for sharing your experience. It does seem like the issue might be related to the print strings. It's great to hear that it hasn't affected gameplay. Keep an eye on it, and let me know if you need any further assistance. Glad you're enjoying the tutorials!

  • @FutureDev_
    @FutureDev_ 4 місяці тому

    It will be very helpful , if you make tutorials on cpp , can you make it :) . I am learing ue in cpp . Its actually very diffcult to find and watch video where there is good explanation .

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому

      Hey there! Thank you for your comment and your suggestion. I'll definitely consider creating some tutorials on C++ for Unreal Engine! Stay tuned for more content. Cheers!

  • @mattgreen753
    @mattgreen753 10 місяців тому +1

    The console command EnableAllScreenMessages fixes the bug where print string messages don't show up.

    • @AliElZoheiry
      @AliElZoheiry  10 місяців тому

      You're a life saver man! I've been having to restart the engine every time I use the AI debugger 🙏

  • @zarakilian
    @zarakilian 11 місяців тому

    Hey Ali, thanks for the Tutorial. Injist have a question on how to make the ai differentiate between different Actors that are not Pawns?
    Example, I want to make the AI see a door, and then attack that door.
    But problem is that the ai sees other paws and cant differentiate between the different actos. Tags dont seem to work either for AI sight.

    • @AliElZoheiry
      @AliElZoheiry  11 місяців тому +1

      For now we have the enemy perceive all actors, I will be adding actor differentiation soon, but the idea is that in the HandleSensedSight function, before doing anything you can check the Class of the actor being sensed and then do different things based on the actor class/type

    • @zarakilian
      @zarakilian 11 місяців тому +1

      @AliElZoheiry that would be great thanks!
      I'll try it in the meantime.

  • @ahmedsameh2384
    @ahmedsameh2384 7 місяців тому

    فخر العرب الحقيقي

  • @caution5862
    @caution5862 8 місяців тому

    Hey there, I m trying to implement sound detection for my enemy. Implementing footstep detection currently ...but donno how I can setup different range for sprinting and walking and crouching ...I want my enemy to able to detect all these but on a different radius.

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому

      I briefly touch on this at 9:18 using the make noise node, especially the loudness and maxRange parameters

  • @user-xb1jc7lf8x
    @user-xb1jc7lf8x Рік тому +1

  • @TheVorlecGame
    @TheVorlecGame 4 місяці тому

    Yo i have a problem, that makes the first enemy placed to not focus my player, only the other enemies placed after the first one works, any fixes?

    • @AliElZoheiry
      @AliElZoheiry  4 місяці тому

      Hey there, sounds pretty strange. I don't know off the top of my head what could be causing the issue. Maybe join the discord community and ask there, maybe someone faced a similar issue (link in the description)

  • @alessioribaldi6373
    @alessioribaldi6373 Місяць тому

    Hi! I have one question, how can i handle when the enemy lose sight of the player for an amount of time? Like, the enemy sees me and start chasing me, I enter in a building and he cannot longer see me, how can I tell at the AIController to (for example) start investigating the last seen location? Thank you for those tutorial btw, those saved my life more and more times

    • @AliElZoheiry
      @AliElZoheiry  Місяць тому

      Hey there! I addressed this issue and explained that the functionality to make the AI "forget" the player and go back to patrolling or investigating the last seen location is added in Part 9 of the series. You need to implement a "forget actor" functionality for this behavior to work properly. You can check it out here ua-cam.com/video/U9WionHmfCM/v-deo.html

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

    Another great part. thanks.
    Any way to change where is the ai looking in sight sense? The problem is when a place a 1m tall cover wall/bush the enemy ai don't see me if i stay front of him.

    • @AliElZoheiry
      @AliElZoheiry  Рік тому +1

      Thanks Imr!
      So the vertical angle for sight perception is fixed, but you can get the enemy to look up and down to sense things by using "SetFocus" (which takes an actor) or "SetFocalPoint" which takes a location. So theoretically, you can get the enemy to change their focal point to look up and down every now and then and sense things a bit higher or lower than they can usually sense

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

      @@AliElZoheiry Thanks, when can we expect the next part? :)

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

      @@InnerspaceX most likely tomorrow 👍

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

      @@AliElZoheiry Cheers

  • @ghostgamer260
    @ghostgamer260 7 місяців тому

    I can’t seem to get the enemy to go after the player unless I hit the hot key, any ideas?

    • @AliElZoheiry
      @AliElZoheiry  7 місяців тому

      Hey Ghostgamer, I see you asked the question on Discord, let's see if we can help you there.

    • @ghostgamer260
      @ghostgamer260 7 місяців тому

      @@AliElZoheiry I’m about to start my drive home. After that I’ll hop on 👍. Thank you

  • @JoyberTech
    @JoyberTech 5 місяців тому

    I knew little about AI from UE before watching your videos; your videos are amazing.
    In this tutorial, I have a small bug, When the enemy attacks and I press the 'F' key to trigger 'Make Noise,' the AI stops chasing me and moves towards the direction of the sound.
    Where is the bug here?

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому +2

      Hey Emma, glad you’re finding these useful so far, happy to help.
      If your enemy goes from attacking to investigating, that means in you are allowing a transition from Attacking state to Investigating state, if you don’t want that to happen then make sure that you only allow transition from passive to investigating

  • @jtlimmax1981
    @jtlimmax1981 8 місяців тому

    Hey Ali, thanks for sharing another great tutorial for AI!! Really appreciate it!
    I followed what you've done in this tutorial but I change something a little bit to match with my game(set focus and clear focus parts in behavior tree)
    When I test the perception, I came across the issue with sight sense for ai. When I make noise, the sight sense also triggered with hearing sense and my ai attack the player right away even there is wall between the enemy and the player.
    Feels like they can see me through the walls. Any idea of this issue?

    • @AliElZoheiry
      @AliElZoheiry  8 місяців тому

      Sight and sound senses shouldn't be linked to each other in any way, unless when you make a sound, the enemy goes to the sound location and then sees the target, thus triggering the sight sense

    • @SLAPMYGORILLA
      @SLAPMYGORILLA 5 місяців тому

      With this setup, all previous sensed stimuli are executed in the for each loop from the function Get Actors Perception. If your AI sees an enemy, but has also Heard an enemy previously, then the Hear enemy Logic will execute unless you break the AI Stimulus to check with a branch node if the sense is successful or not. You cant use any logic for when the sense expires like this. Is this what the issue you were having?

    • @somewayassassin
      @somewayassassin 3 місяці тому

      ​@@AliElZoheiry add AI PERCEPTION to AI CONTROLLER instead of the BP otherwise damage sense wont work but the rest will.

    • @cryptic_cranium
      @cryptic_cranium 3 місяці тому

      Have you fixed this? i have the same problem

    • @somewayassassin
      @somewayassassin 3 місяці тому

      @@cryptic_cranium yes I have fixed this

  • @cryptic_cranium
    @cryptic_cranium 3 місяці тому +1

    Love the vid but I came into a problem near the end and everything was working fine but now when i make a noise and a enemy cannot see me it sends both the sight and the hearing senses through at the same time (know this because i printed text) anyone got an Idea why its doing this?

    • @AliElZoheiry
      @AliElZoheiry  3 місяці тому

      Hmm… not really sure what the problem is, but I recommend joining the Discord server and asking there, maybe someone encountered the same issue (link in the description)

  • @drakorez
    @drakorez 17 днів тому

    In the "responding to sensing an actor" section why not just use the "On Target Perception Updated" node? I am still new to this, so I may be missing something, but it seems a lot easier that way. My understanding is that that node gives you a separate call for each time an actor is sensed, so you would not need to loop through an array each time.

    • @AliElZoheiry
      @AliElZoheiry  15 днів тому +1

      Hey there, indeed it seems that it is easier to use, but at the time of making this video, I had some issues with "On Target anything.." I hope that by now they fixed those issues, but also using "On Perception Updated" isn't that much more complex, and gives us control over how to deal with each actor

  • @devmasterkira
    @devmasterkira 2 місяці тому

    Hi! Excellent videos! i want to ask you about an issue i have... my AI only sight, i configure Hearing and pain, but only Sight work, i remove the Sight sense and it don't detect nothing.

    • @AliElZoheiry
      @AliElZoheiry  2 місяці тому

      Hey there! Thank you for your kind words. It sounds like you're experiencing a peculiar issue with the AI senses. Have you double-checked the configurations for sound and damage senses to ensure they are set up correctly? It could be a small configuration issue causing the problem

    • @devmasterkira
      @devmasterkira 2 місяці тому

      @@AliElZoheiry Hello! I deleted the component and added it again, then Hearing started working, but Damage and Touch still didn't do anything, what I did then was move the AIPerception to the AIController, and everything started working without any problem, now I have the Sense inside the Controller and all the functions inside the character.

  • @MistahLarson
    @MistahLarson 7 місяців тому

    Hello, what if you wish to make an object make noise? For me I can only seem to be able to do it so that pawns make noises.

    • @AliElZoheiry
      @AliElZoheiry  7 місяців тому

      Noise can come from any actor, doesn't matter whether it's a pawn or not, but in our current setup, the enemy won't "see" an actor thats not a pawn

  • @Crowfly
    @Crowfly 5 місяців тому

    For somereason the '4' key is not activating the perception. Can someone tell me what its called in the preferences to change the binding? I checked the settings and preferences for key bings and perception and no luck. Please let me know.

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому

      The default are numpad numbers, so make sure you are using the numpad, and if you don't have a numpad then you have to change the Gameplay debugger settings in your project settings

  • @hvmilton1358
    @hvmilton1358 5 місяців тому

    I love you

    • @AliElZoheiry
      @AliElZoheiry  5 місяців тому

      Thank you hvmilt. I love you too