Тёмный

Unreal Engine 4 Tutorial - AI - Part 3 Chasing the Player 

Ryan Laley
Подписаться 105 тыс.
Просмотров 127 тыс.
50% 1

This episode carries on from our previous one and we improve the enemy AI so that it will chase the player more accurately.
Watch the next episode where we begin creating our quest system over at Patreon for as little as $1.
Support me on Patreon and get access to videos early, join our developer community on Discord, get exclusive behind the scenes videos on my projects and much more over at / ryanlaley .
Subscribe now to catch each video as they are released each week.
Follow me on Twitter: / ryanlaley
Like my page on Facebook: / ryanlaleygames

Хобби

Опубликовано:

 

1 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 174   
@VladMihailescu
@VladMihailescu 5 лет назад
Dude hands down you present much faster than the meme online training Epic has on the same subject, all respect and hope you keep pumping those tutorials. They are the best I've found right now.
@ItsMeLuke69
@ItsMeLuke69 Год назад
Watching all of these back to back I've noticed you explain the same thing in every video. Honestly I like it because your cementing facts. I can't wait to get to the point of learning where I don't have to look up a tutorial for everything that I do
@nec8050
@nec8050 5 лет назад
Nice love to see some good content being uploaded. A lot of the other good tutorial makers have vanished so keep it up! :)
@RyanLaley
@RyanLaley 5 лет назад
Thanks, at least one video each week, every Thursday
@nec8050
@nec8050 5 лет назад
@@RyanLaley Good to hear.
@niltsor9929
@niltsor9929 5 лет назад
Great tutorial so far thank you - looking forward to the next part
@ioannaotinanai
@ioannaotinanai 4 года назад
Thank you for this very useful, well explained content!
@itsthecoffeeknight3528
@itsthecoffeeknight3528 3 года назад
Note: If your pawn is standing still after creating your task and testing, check to make sure the task in the tree has your target vector assigned as a key.
@angelamazakas2624
@angelamazakas2624 4 года назад
for anyone doing VR, make sure to use get player pawn and not get player character
@guvking5980
@guvking5980 4 года назад
THANK YOU!!
@guvking5980
@guvking5980 4 года назад
wait hes still broken even with that.. when he sees me he changes his angle a lot and then just runs in a random direction.. any solution?
@ItsJust_Nick
@ItsJust_Nick 4 года назад
@@guvking5980 I think the problem is he is going to the camera in the veiwport. I just hard a similar problem where wherever my camera in editing was last the AI would go on the ground below the camera. I think this is because the camera you control is counted as a controler. I fixed this by finding the player pawn not controler. Hope that helps.
@MadCoonGames
@MadCoonGames 2 года назад
Thanks for your great tutorials Ryan!!! You r an excellent teacher man
@tryphonmanu
@tryphonmanu 2 года назад
Thanks, i really enjoy to see your tutorials.
@HyperCazual
@HyperCazual 3 года назад
Showing the area where they can see can be super helpful.
@GabrielSoaresALife
@GabrielSoaresALife 4 года назад
Your videos help me a create and understand how AI in unreal really works. You saved my game hahaha
@Al-tp1wn
@Al-tp1wn 3 года назад
Your videos are so great dude, thanks a lot !
@Quarter2Doom
@Quarter2Doom 4 года назад
Dude these videos are amazing! Thank you so much
@shanepelcha3601
@shanepelcha3601 5 лет назад
I'm really enjoying the AI stuff man.
@mihaiwilson
@mihaiwilson 3 года назад
Thanks so much Ryan!
@Dudevid
@Dudevid 5 лет назад
Eagerly awaiting the next one. They can't come soon enough!
@RyanLaley
@RyanLaley 5 лет назад
Part 4 and 5 are both on Patreon. 6 and maybe 7 will join them tomorrow. Part 4 will be made available to everyone in only a few hours so fortunately you won't need to wait too long ;)
@GeorgeWulfers_88
@GeorgeWulfers_88 3 года назад
Great tutorials on this subject! :) It is tough to find good ones.
@MZONE3D
@MZONE3D 5 лет назад
Great tutorial mate, thanks
@AllucardA10
@AllucardA10 5 лет назад
Smoothing the AI pawn rotation... My dreams are realised, thank you mate
@scriblestingray5713
@scriblestingray5713 3 года назад
seriously, that been the bane of my existence.
@legacythegame
@legacythegame 5 лет назад
Thanks for the tutorial Ryan! I found an alternative method for getting rid of the stutter: Random navigable location causes the direction stutter because it constantly adds an offset to the player location forcing the controller to turn left and right a little bit every frame even when standing still, if you just use get actor location it goes away, if you want to smooth that out further you can plug the actor location into a vinterpTo before setting the blackboard vector
@iamplaceholder
@iamplaceholder 4 года назад
To elaborate further on Legacy's fix: Open the 'find player location' task ... Remove the "GetRandomPointInNavigableRadius" node and instead ... Attach the return value of the "GetActorLocation" node to the value pin of the "Set Blackboard Value asVector" node .
@Abhishekchhetri6774
@Abhishekchhetri6774 4 года назад
@@iamplaceholder thanks bud
@iamplaceholder
@iamplaceholder 4 года назад
@@Abhishekchhetri6774 My pleasure
@ItsJust_Nick
@ItsJust_Nick 4 года назад
Thanks this helped
@vasudev8957
@vasudev8957 2 года назад
why dont you simply store the player ref in the blackboard and use it with the move to node it will as smooth as the player's movement if this is not the right way pls reply
@The034Alex
@The034Alex 5 лет назад
So cool! Currently working on a project where I need exactly this. Can you make a tutorial how to implement custom C++ logic in the AI?
@penguinooo9747
@penguinooo9747 2 года назад
Thank you so much you have no idea how long ive been trying to fix this exact problem. LMAO my game is supposed to be released in 60 hours and without this video i wouldnt have been able to have improved ai,. thank you thank you so much you are a life saver
@dulceruizrobles3373
@dulceruizrobles3373 4 года назад
Thank you!
@glasscannon3609
@glasscannon3609 2 года назад
this guys tutorials are the only ones that work every time on the first try. i have tried all the other ue4 youtubers but it seems like no matter how many times i try them it fails halfway but laley is the truth. dudes the fuckin Drake of gamedev
@eatmylettuce5162
@eatmylettuce5162 Год назад
Thank you for this amazing series, Not sure if you go over this in a future episode but how would you change the movement speed for the AI, so it walks when it doesn't see the player but starts running when it does? I've looked everywhere and cant find anything explaining it!
@Biegnoncy
@Biegnoncy 4 года назад
Hey Ryan! These are wonderful tutorials your're making, I learned alot from them! :) I'm making little project and have a small problem. Could you tell me how to make enemy stand still for a while right after he looses player from his sight range? I was trying to rearrange nodes in behaviour tree (so "wait" is before "move to random location" but despite this enemy always immediately starts to wander around after the player is out of his range (I want him to stop for a few seconds and then make him wander randomly). Thanks! EDIT: Nevermind, figured it out ;)
@segplayz
@segplayz 2 года назад
Hi Ryan, Love the content! And was just wondering how would you add music while the so is chasing you and make it fade out when it can’t see you anymore
@bertani6134
@bertani6134 3 года назад
Amazing!!!
@yozzahughes3939
@yozzahughes3939 4 года назад
ryan my dude, hope your well? wondering how do you get this to work with a 3d side scroller? thanks man legend
@Gulzt
@Gulzt 8 месяцев назад
If you were so lucky to find this comment, I highly recommend you put the "Can See Player" on the left branch instead and set its priority to "aborts lower priority". This way as soon as the player is spotted the AI will interrupt what it was doing and chase you. It will make the following lessons a lot easier. thank me later.
@AhviMa
@AhviMa 2 года назад
You can use an object variable to be used in the "move to" task, just set the base class(under key type, in blackboard details) into "Actor".
@2PACBRB2014
@2PACBRB2014 2 года назад
it doesnt work it will detect other AI
@letterborneVods
@letterborneVods 3 года назад
Btw, youtube thinks you’re saying “porn” when you’re saying “pawn”, I hope that doesn’t have any negative effect on SEO 😱 (I watch with subtitles) Anyways, love your content, keep it up! 👍😊
@adamrose9709
@adamrose9709 3 года назад
These tutorials are easy to follow and understand which is more then I can say about most tutorials. However I cant understand why no one will take a couple of minutes and answer questions that people have. Some of the questions I can relate and could use an answer myself. But I am going to take a chance that someone might answer a question. I can not get the AI to chase me. What can I do to fix this? They will spot me and orbit around me moving from location to location randomly but that's it. This is not the first time this question has been asked but it is a rather important question so I'm asking it. Thanks
@empressofmadness
@empressofmadness 2 года назад
and it just works!!!
@karlsahlmanmontenius2697
@karlsahlmanmontenius2697 4 года назад
I really like this series. Very easy to follow! #mediaartssbcc
@thack2502
@thack2502 5 лет назад
Nice tutorials, thanks. I'm assuming that this will NOT work with multiplayer games because of the "Get Player Character" node only getting the first player. Is there any reason you didn't pass the player "seen" into the Blackboard or even player location to allow it to work with multiplayer ? Would this work ?
@olikyuz2389
@olikyuz2389 5 лет назад
I'm coming.
@desanta4835
@desanta4835 2 года назад
Thanks for the video! Is it possible to somehow use Ai Move To instead Move To in Behavior Tree?
@vladyslavtkachuk4457
@vladyslavtkachuk4457 4 года назад
Hi Ryan! I would like to know how we can make AI run away from player. Also is it possible to make this AI to a bird-like character so it can fly around?
@beelson5169
@beelson5169 3 года назад
which video covers setting the status of enemies/friendly.. because i made one that chases and one that just roams around, but the chase bot tends to want to chase the other npc instead of the player, i'd like to be able to distinguish
@BaCKouR
@BaCKouR 4 года назад
a good tutorial man but I noticed an insignificant "bug" If we can say that, at least in my case the AI chase me and if I stay still for a short while my AI keep moving arond me and after it run away like it lost me, anyway you helped me a lot, thx!
@freemind.d2714
@freemind.d2714 5 лет назад
You could just use the build in function of AI controller called "Move To Actor", no need code this function on you own. And for chase more believable or make the NPC more believable, NPC should chase to the place that lost the player and move along the player's last velocity for some distance. Thanks for the tutorial though : ) Maybe you could explain why should we use the behavior tree instead just code those thing inside the AI controller component? I don't feel the behavior tree can be big help for the NPC behavior, specifically those flow control seem not so convenient inside the behavior tree...
@jagolawgaming3377
@jagolawgaming3377 4 года назад
Hello ryan, just i quick one, if i was to add another enemy do i just duplicate the original and change the anims, blueprint for it to work on another?
@Mr.Biegel
@Mr.Biegel 4 года назад
first the flow control was on none, so the ai find me go to my last seen vector location, after that he plays dumb again and go again to a random location, in flow control i changed the observer aborts and now the ai follow me like i want, i dont know why this solved my problem, please tell me what changed when i abort both both ? Again love your work
@gamingman936
@gamingman936 Год назад
If you are doing this in UE5 Simple move wont work you will need to use the AI Move to Node set the vector blackboard key to the destination get the player charactor and plug that into the target actor then finish execute.
@Gulzt
@Gulzt 8 месяцев назад
Simple move works for me in Unreal 5.3; did you forget to connect the Controller pin?
@tytotech9498
@tytotech9498 5 лет назад
I don't know what I did wrong, but my npc doesn't chase my player. it only wanders.
@Dela_Muse
@Dela_Muse 4 года назад
Hi Ryan, I'm new to UE4, lots to learn. Can tanks be AI controlled to chase and shoot at player? It would be great if you could point me to a tutorial you've made that may offer some assistance. Thanks in advance.
@princehansol8378
@princehansol8378 4 года назад
Is there a way to shorten the distance that the AI can see you and begin a chase?
@RC-ge8rv
@RC-ge8rv 3 года назад
Hello to everyone and thanks to Ryan for the great Tut.My NPC just stands there, will no longer follow NPC.Does anyone have the fix That would be great.Thanks
@gothbrickwomen
@gothbrickwomen 5 лет назад
Nice! But i think i'm gonna stick with the AI I have :P from your other tutorial
@danielwilliamson3503
@danielwilliamson3503 4 года назад
If a fog was created, could this applied in the same way so that the player is chased by an unknown entity?
@idontknow898
@idontknow898 4 года назад
I'm having some trouble with my NPC blueprint. For some reason, my viewport and component windows are disappearing with no way to get it back, and I keep having to create new ones. Does anyone know how to fix this? It's become a major pain in the butt
@damz2289
@damz2289 3 года назад
Is there a tutorial for walking and chasing speed of the AI ??
@maggie9383
@maggie9383 3 года назад
Can you do a video on how to end the game if the AI catches the player?
@zohaibalig
@zohaibalig 5 лет назад
My AI character is not rotating his face at the random point it select, its face is in forward position and moving to left side. Please help me
@tylerbaker2873
@tylerbaker2873 3 года назад
Ai controller won’t set the value of the bool and Idk why the only thing I’m doing different is not using the mannequin first person character (which when I did previously it worked without an issue)
@torstaken
@torstaken 2 года назад
How do i get lower priority because its not showing up in unreal engine 5
@danielangelchavezangeles8151
@danielangelchavezangeles8151 2 года назад
How can I make my ai follow more than one player? in mode multiplayer ??
@iansapp
@iansapp 3 года назад
I'm having issues with the auto success range. Lets say I go through a door and hide in there and the AI last sees me in the doorway, once they reset and I go near the door the AI instantly is alerted even with their back turned. I've looked all over the place trying to find a way to reset the success range, clear the last seen location, or really anything to help remedy this. If anybody knows how I can clear this when the AI is set to patrol again please let me know.
@fredriks86
@fredriks86 5 лет назад
Can you Make an AI chase 2 different characters? Like co-op. 2 players and one AI. An AI that attack both players. :) ???
@lendo182
@lendo182 4 года назад
Yeah I would like to have that too. I made a second character in my game but the AI only follows the main character (TopDownCharacter) I dont know how to fix this :C
@lendo182
@lendo182 4 года назад
@unrealistische entwicklung ah yes I use get player character. Thanks, I will try to fix it with that 👌
@joshiey_6815
@joshiey_6815 4 года назад
How do i get the AI to change 'Max Walk Speed' when it sees the Player, Then change back when the AI looses sight? My AI walks around and i want it to run after my player
@joshiey_6815
@joshiey_6815 4 года назад
Episode 6 of this series
@elegmant
@elegmant 4 года назад
@Ryan Laley You have the best tutorials, can you help me with my problem? Please, I need a help
@mike309saa
@mike309saa 4 года назад
really want to get into game development in UE4 as I already know how to model and texture etc in blender so would be good to create games. Thought struggling to get my head round some things. Seeing something like this just makes me appreciate the amount of work game devs put into game creation especially in games like Red Dead Redemption 2 and all AAA games for that matter, with all the complex game mechanics they implement. Can only imagine how complex the coding is.
@RyanLaley
@RyanLaley 4 года назад
It is indeed complex. If you are getting started in UE4 development check out the trailer for my latest series 'making your first game'
@WarriorBeastYT
@WarriorBeastYT 2 года назад
How do I make the ai follow closest player ???
@ty_teynium
@ty_teynium 3 года назад
Have you done something like this where the Ai runs away from you?
@fmbam
@fmbam 4 года назад
How do I make one AI chase another?
@theluckyclain2735
@theluckyclain2735 2 года назад
Mine only has Self, it can't do both?
@vincentprom9265
@vincentprom9265 5 лет назад
If I simply jump over my enemy, he loses track of me. Is there a setting in perception I could tweak perhaps, so that he's aware of a fixed circle around him?
@RyanLaley
@RyanLaley 5 лет назад
This will be the next video I record for this series. What we will be doing is when they are chasing you we change their perception data so they can keep tabs on you
@IloveyourcHAnneliTsrEallYgOodU
@IloveyourcHAnneliTsrEallYgOodU 4 года назад
This is a very good tutorial series but I'm having a slight issue. The AI moves to the player's location but it only starts moving when I stop. Plus when it does move it rotates in all different directions and looks weird. Any help?
@Theoutsidethinker
@Theoutsidethinker 3 года назад
Seems you and I are having a similar issue @SnakeNationHQ
@csiguru
@csiguru 2 года назад
@@Theoutsidethinker me to, did you ever get a solution?
@masterox2
@masterox2 2 года назад
i have a quustion: so i have this giant worm thing and i wanna make an AI for it. heres what i want the AI to do: when its idle to stay underground and randomly jump in and out of the ground, when its alerted to rush to the player- still underground and randomly jumping out of the ground
@prodMLW
@prodMLW 3 года назад
Hey! I was wondering if you or anyone else could help me with an issue I have. So I made the AI move random locations and the track of me, but when I go in front of the AI it stands still forever.
@RC-ge8rv
@RC-ge8rv 3 года назад
I have the same prob did you work it out and if so, can you please send me the answer.Thanks
@lightyagami6307
@lightyagami6307 2 года назад
Maybe his acceptance radius when he finds the player is too much ao the tast is alwaya successfull make the AI just stare at u
@VoodooPanda1
@VoodooPanda1 5 лет назад
Can you show how to make an npc jump up to a higher elevation to chase the player?
@RyanLaley
@RyanLaley 5 лет назад
Sure I'll add it to the list
@Marguns21
@Marguns21 Год назад
my npc keeps running away from me instead XD like it chases me and then when it gets close it runs away
@sirbillybob
@sirbillybob 4 года назад
mine isnt working, it is still dumb probably because im doing first person (maybe)
@gokhanaragulu8191
@gokhanaragulu8191 5 лет назад
Outlast 2 door opening and closed character animation please :) and ai bohiver attack and heath systems sound attackk system pls
@suddenleegaming
@suddenleegaming 5 лет назад
Hi Ryan Im making a game using first person and i have a third person AI, everything was working up until the part where i gave third person character the ai stimuli but now the problem is that CanSeePlayer won't turn true i dont know why
@suddenleegaming
@suddenleegaming 5 лет назад
Umm actually nvm I fixed i had given the wrong connection in the blueprint
@syndicate3214
@syndicate3214 3 года назад
what if i want the AI to follow the player at all times can i just remove the go to random location sequence?
@RyanLaley
@RyanLaley 3 года назад
Correct
@VoodooPanda1
@VoodooPanda1 5 лет назад
An enemy type that only attacks in packs would be cool.
@RyanLaley
@RyanLaley 5 лет назад
I'll add it to my AI-to-do list
@stormolflak
@stormolflak 2 года назад
👍
@shandybka
@shandybka 3 года назад
5:10 at this moment my character can attack. After the bot rushed to catch up me, I hit him. I was very surprised when he started to run away from me
@mohamedmafaz6538
@mohamedmafaz6538 3 года назад
why does my ai character finds random location once and stops
@josephkeller2521
@josephkeller2521 5 лет назад
Is anyone else's video 'shorting' out for this tutorial? Every time I try to watch it, this green bar appears at the top, then a gray-black box takes up the whole screen. Am I crazy?
@RyanLaley
@RyanLaley 5 лет назад
RU-vid has been acting weird the past few days. Sadly nothing I can do from my end.
@denizhncal6091
@denizhncal6091 4 года назад
1:56 Thanks for tutorial but there is not a choice both in the new versions can you help about that ?
@megtwin
@megtwin 4 года назад
What version are you using? I'm using v23 and its still there
@denizhncal6091
@denizhncal6091 4 года назад
@@megtwin I am using the 2.25
@megtwin
@megtwin 4 года назад
@@denizhncal6091 I tried v24 but it had so mny issues I just can't believe they released v25. imo they are going way too fast with the releases.
@thalesludwig
@thalesludwig 3 года назад
Change the node right after "Root" from sequence to selector.
@elegmant
@elegmant 4 года назад
My AI just round around and when I get in their vision, they just stop. And start running random when I get out of their vision. Pls help me. It is not my text, but I have this problem too...
@inkkilpatrick6220
@inkkilpatrick6220 4 года назад
If you keep the behavior tree open while the game runs you can see where it is in the tree when it freezes, is it freezing on the task responsible for getting a location near the player?
@elegmant
@elegmant 4 года назад
@@inkkilpatrick6220 It is freezing on the Can See Player (6), Cooldown (7), Chase Player (8), Find Player Loc(9) and Chase Player (10)
@inkkilpatrick6220
@inkkilpatrick6220 4 года назад
@@elegmant sure, send me a screenshot. Thatd help
@elegmant
@elegmant 4 года назад
@@inkkilpatrick6220 Are you here?
@XMan-lp9bb
@XMan-lp9bb 4 года назад
Is anyone got this massage ? Blueprint Runtime Error: "Accessed None trying to read property CallFunc_GetPlayerCharacter_ReturnValue". Blueprint: FindPlayerLocation Function: Execute Ubergraph Find Player Location Graph: EventGraph Node: Set Blackboard Value as Vector
@gamezense
@gamezense 4 года назад
When my actor (player) dies
@AndreiShulgach
@AndreiShulgach 5 лет назад
I'm using the First Person BP, and the NPC never seems to spot the player. I've follow your instructions very closely, but in the last tutorial is when you set this up. Any thoughts as to why it wouldn't spot me at all?
@kuro2ck
@kuro2ck 5 лет назад
make sure to add the aiperceptionStimuliSource to the first person BP and auto register as a source and add sight. then in your NPC_AI cast to your first person BP.
@AndreiShulgach
@AndreiShulgach 5 лет назад
@@kuro2ck I double checked to make sure I did all of that and the NPC still doesn't see me.
@kuro2ck
@kuro2ck 5 лет назад
@@AndreiShulgach I've literally just gone through this and mine wasn't working, till i set those. only other thing without seeing what you've done is make sure from the cast to first person that you haven't used the pin As firstperson to the get blackboard node.
@AndreiShulgach
@AndreiShulgach 5 лет назад
@@kuro2ck I'd be happy to share screenshots if you're willing. I appreciate the quick responses!
@kuro2ck
@kuro2ck 5 лет назад
@@AndreiShulgach discord.gg/FDBjtH I just created a discord, can share on there and discuss if you like.
@upsilondiesbackwards
@upsilondiesbackwards 5 лет назад
Hey Ryan for some reason my AI isn't sensing the Player character! I have the stimuli in the player!
@upsilondiesbackwards
@upsilondiesbackwards 5 лет назад
well I think it is being sensed however my AI gets confused on whether to chase the player or to walk randomly
@RyanLaley
@RyanLaley 5 лет назад
-Check the team affiliation is all ticked. -Check the sight half angle isn't too small (Min 45 degrees) After checking those and still no luck. If you are able to record what is happening for me that would help. If you do that try to show the behaviour tree window at the same time
@upsilondiesbackwards
@upsilondiesbackwards 5 лет назад
@@RyanLaley ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-UF3H6UUYJ78.html - This is the video you asked. I also showed the affiliation and sight half angle.
@Alaa_alshahed
@Alaa_alshahed 5 лет назад
@@RyanLaley this exactly what happening with me and I rechecked everything and all ok :( how did you solve it?
@userGoldenStephano
@userGoldenStephano 4 года назад
Switch from the player controller to player character instead. It started following me after that. (I meant in the FindPlayerLocation. Switch GetPlayerController to GetPlayerCharacter.)
@fckgogle866
@fckgogle866 5 лет назад
My AI just round around and when I get in their vision, they just stop. And start running random when I get out of their vision. Pls help I’m very new heh
@elegmant
@elegmant 4 года назад
I have this problem too
@elegmant
@elegmant 4 года назад
You find an answer?
@Weredah
@Weredah 4 года назад
SAME PROBLEM
@elegmant
@elegmant 4 года назад
Who can help me?
@gegen_den_strom
@gegen_den_strom 4 года назад
same here
@TrespasserAlt
@TrespasserAlt 5 лет назад
IDK why but I can’t open NPC... it does open but it’s just blank
@kilbyfilms8132
@kilbyfilms8132 5 лет назад
me to
@kilbyfilms8132
@kilbyfilms8132 5 лет назад
OH I FIGURED OUT HOW TO FIX THAT! with some help from a little chat i had with the creator of this video. the way you fix that is.... (drum rool pleeeaaase............no?.........m'k) go to the unrecognized screen and click "Windows" up top of your screen. then click "my blueprints". then click "Event graph" then celebrate. i know i did. :D
@beat91sms
@beat91sms 3 года назад
Isnt PawnSensing better?
@RyanLaley
@RyanLaley 3 года назад
Nope. Pawn sensing was essentially replaced by AI perception
@beastmodejelly8654
@beastmodejelly8654 3 года назад
I evade the AI but still it insist in finding me,no matter if I jump to the other side of the obstacles and hide..the AI always manage to get to my location really fast..
@RyanLaley
@RyanLaley 3 года назад
Makes use that you check the vision angle in the perception settings and make sure that the canseeplayer Boolean can be set to false. On the sense data structure we drag the Boolean to the set blackboard value as boolean
@elegmant
@elegmant 4 года назад
@RyanLaley Can you help me?
@OBJNULL
@OBJNULL 5 лет назад
In abort options i only see None Self please get to me as soon as possible
@RyanLaley
@RyanLaley 5 лет назад
It will show 'both' when you have a branch to right of itself. If there isn't anything to it's right it won't show the both. The position of the branches and nodes in the tree matter
@hjalte-bast6981
@hjalte-bast6981 3 года назад
My ai walks Sideways lol
@arcticgamers123
@arcticgamers123 3 года назад
The AI doesn't start chasing the player. It just keeps on going to random locations
@josemendoza4946
@josemendoza4946 3 года назад
Make sure that you have your world settings checked and the right player character
@arcticgamers123
@arcticgamers123 3 года назад
@@josemendoza4946 I followed everything exactly, everything done as you did and it doesn't work
@jennyrudi2098
@jennyrudi2098 2 года назад
Left hand path......
@ackermanxxx8345
@ackermanxxx8345 4 года назад
Try to make AI kill the player like FNAF
@Lord_Thunderballs
@Lord_Thunderballs 2 года назад
This doesnt work in Unreal Engine 5.
@GBTC2011
@GBTC2011 5 лет назад
My AI is not chasing me, I've done this tutorial three times already.
@4TheTurtle
@4TheTurtle 5 лет назад
Did you build the navigation mesh? Press P, is it green?
@GBTC2011
@GBTC2011 5 лет назад
@@4TheTurtle Yes, my ai is moving around to random locations, but not following me.
@4TheTurtle
@4TheTurtle 5 лет назад
@@GBTC2011 Can you show your blueprints & behavior tree? like screenshots or something.
@GBTC2011
@GBTC2011 5 лет назад
@@4TheTurtle I tried it from scratch two more times and it still doesn't follow me. I succeded before using a different tutorial and that's what I'm going to do. I used one of Ryan's tutorial for inventory system and it was full of bugs also, maybe they are not the tutorials I should use.
@userGoldenStephano
@userGoldenStephano 4 года назад
Switch from the player controller to player character instead. It started following me after that. Edit: I meant in the FindPlayerLocation. Switch GetPlayerController to GetPlayerCharacter.
@metri0n
@metri0n 3 года назад
I have followed the tutorials step by step, detail by detail TWICE and this does not work. The NPC runs around aimlessly and clearly does not see me.
@jonathanbibi799
@jonathanbibi799 3 года назад
Found a fix?
Далее
Unreal Engine 4 Tutorial - AI - Part 4 Patrolling NPC
20:50
How I Remade MW2 with Unreal Engine 5
12:37
Просмотров 3 млн
КАК Я ЭТО СДЕЛАЛА?
00:13
Просмотров 435 тыс.
Unreal Engine AI with Behavior Trees | Unreal Engine
26:38
A.I. Chase & Patrol 👉 UE5 Tutorial (the easy way)
10:41
Unreal Engine 5.4 Motion Matching in 13 Minutes | 2024
13:41
WORLD'S SHORTEST WOMAN
0:58
Просмотров 84 млн
28 июля 2024 г.
0:20
Просмотров 5 млн
Ваш дом мешает 🗿
0:47
Просмотров 2,8 млн