Creating a Zombie AI in UE4 [4.25] | More Tasks, More Keys & Sight Perception! [Part 3]
HTML-код
- Опубликовано: 5 фев 2025
- Hello all and welcome to the third episode in Making a Zombie AI in Unreal Engine 4. In this episode, we continue working on the tasks and the behaviour tree and add sight perception to the zombie controller.
Project File Download Page: bit.ly/2X89w85
Follow me on Twitter at @radon_yt.
Subscribe for more videos like this in the future.
This might be redundant now, but it might help someone:
Peripheral vision is a half figure, so think of it as the amount each eye can see, rather than both eyes in conjunction. A setting of 90 gives the pawn 180 degrees of vision overall, from it's forward vector, and setting it to 180 means it can see all the way around itself.
I had the issue some other commenters have mentioned, where the player is ignored, and found that in my "FindPlayerLocation" Blackboard Task, I had "Get Player Controller" instead of "Get Player Character" - Make sure you delete the "Get Actor Location" and replace it, because it can be very buggy when you change the Actor reference, it's safer to just replace the node entirely.
I also changed the Decorator of the Sequence node for making the AI Wander around to "Observer aborts: Both".
If your AI isn't detecting the player, set the AISense_Sight Affiliation to neutral. From the UE documentation: This property can be used to set up Sight perception for teams. Currently, Affiliation can only be defined in C++. For Blueprints, you can use the Detect Neutrals option to detect all Actors, then use Tags to filter out Actor types.
This worked for me thank you so much
Great tutorials! Thank you mate! Hope u doing great!
Great job on the tutorials, clear and straight forward.
Thanks! Glad you enjoyed!
your tutorials are a life saver!!!!! hoping to see more when ue5 launches!
Thanks! I'll be addressing UE5 videos very shortly, mainly focusing on Niagra, Epic Online Services etc, but the zombie AI tutorial will be ported over to UE5 as well!
Thank you. Waiting for next AI lesson.
nice tutorial
;
great tutorial :D thank you so much
Hello i had a question is there a way i could make it muktiplayer?
Can you show how to make Call of Duty Zombies
- Window Barrier
- Zombie Breaks wood barriers on window
- Zombie crawls through window once wood barriers are broken
- Zombie attack you depending on which barrier you closer to they will then destory wood barriers and climb through
Would be great to see a tutorial made.
How would I hve the zombie chase an npc at 11:41
Keep up you great .
Hello, I setup everything exactly how you have and my AI will walk towards me and then stop, and then wont find me again. Is there a fix for this? I had to add isValid to get blackboard too, even though I set the BT at begin play
go to the zombiebt, then select the second move to, on the details panel on the blackboard key, select target location
some people having a problem with Zombie not chasing player. this happened to me, in the left blackboard decorator when you set HasSpottedPlayer to is Is Not Set, you also need to set Observer Aborts to both on the left. this worked for me, hope it helps. might not work for everyone
its not working for me...
I solved problem with not following in Behaviour tree change move to target location
We need you
hey great tutorial sadly it was not working for me did a print string and the zombie was detecting me but it just kept moving around so i moved some things around and fixed after a while
what was the fix?
@MartinOcon599 can you please help, what was the fix? I rewatched the video multiple times and it's still not working
Sorry for the late answer i just saw the coment all i did was change a seting on the behavior tree and it worked when u select the BTTASK_FindPlayerLocation task on the default Vevtror selector i selected target location and it started following the player i also played with randon times but it works for me som may have other isues i had another cuz the game i been working on is multiplayer
At 18:12 I tried it and he wasn't following me when I walked in front of it
It moves around randomly and when it sees me it stands still. Can anyone Help me?
Im having the same problem and have gone through the comments to try and find a solution and nothing has worked
im gonna figure out how to make this multiplayer quick
Done. adding the tutorial i used to do it. ruclips.net/video/Z43nKzLgLKw/видео.html
Unless I'm doing it wrong, the "GetRandomPointInNavigableRadius" now needs an exec pin (UE 5.0.3), which is interesting.
Make relastic zombie bro.
It's in the works! :D
I am very interested in your tourtals will you creat zombie sound tourtal in future?
@@futurelight5536 Yeah it's super simple to do and will be a part of the series.
Thank you
I don't have any idea from ue4 sound system so i will very happy if you explain it on future tourtals
❤❤❤❤❤❤❤
Zombies don't follow my character, has anyone else been there?
go to the zombiebt, then select the second move to, on the details panel on the blackboard key, select target location
what the hell is going on. Its all put this here put this there without an explaination. Should have named this "advanced tutorial" since beginners wont understand a thing.
EDIT: im just being impatient, he explained what he was doing right after.