Unreal Engine AI Controller Follow Player

  Рет қаралды 62,697

Jayanam

Jayanam

Күн бұрын

Пікірлер: 85
@InMemoryOfNeo
@InMemoryOfNeo 6 жыл бұрын
jayanam you're so gentle and wise person. thanks for your videos.
@JayAnAm
@JayAnAm 6 жыл бұрын
Hey, thx a lot!
@UnderfundedScientist
@UnderfundedScientist 4 жыл бұрын
This was so helpful and was considerably shorter while higher quality than most ue4 tutorials
@GeerHedVR
@GeerHedVR 3 жыл бұрын
Man.. I'm not sure what I'm doing wrong, I followed the video exactly.. watched it 20 times. Changed PlayerKey to PlayerObj like others have suggested.. still AI just stands there.
@mirceam7152
@mirceam7152 3 жыл бұрын
Same here I dont know why. Whats funnier still, I have another project with this exact thing and it works.
@PRiMezGFX
@PRiMezGFX 3 жыл бұрын
Anyone having trouble with the AI not moving just remember to rename the player keys default value to ObjectKey (Or whatever it's called within the blackboard) and it should work.
@PabloYaos
@PabloYaos 3 жыл бұрын
Thanks! I was scratching my head really hard at that one. In the tutorial it's named PlayerObj by the way for future people coming through!
@PRiMezGFX
@PRiMezGFX 3 жыл бұрын
@@PabloYaos no problem man! Glad I could help 👍
@whiteblack1528
@whiteblack1528 2 жыл бұрын
i have this trouble but really i don’t understand how to fix it
@PRiMezGFX
@PRiMezGFX 2 жыл бұрын
@@whiteblack1528 Try this vid - kzbin.info/www/bejne/gHe3cmWriKqna5Y&ab_channel=SDC-DigitalLearning
@NutyRiver
@NutyRiver 2 жыл бұрын
Thanks! That was the one thing I was missing!
@rishabhlaheja7689
@rishabhlaheja7689 5 жыл бұрын
Your tutorials are small, precise and to the point....please make more of the RPG game!!! Waiting for your remaining AI tutorials...
@hyperatomart8
@hyperatomart8 6 жыл бұрын
Thanks for the tutorials man! I've literally just gotten started with blueprint a few days ago and this series covers a lot of the topics I was curious about very concisely.
@JayAnAm
@JayAnAm 6 жыл бұрын
Thx, sounds great, keep it up
@nitroneonicman
@nitroneonicman 5 жыл бұрын
So after HOURS of trying to figure out what was going on I realized you have to change the key name to PlayerObj not 'PlayerKey' like is shown in the video. No idea why it worked in the video but it's not correct.
@g71neo53
@g71neo53 4 жыл бұрын
Thanks, I had the same issue. I've been using blue prints since i started but I'm thinking about just switching to cpp since it might be easier. Blue prints are just another way of looking at code but little details like var names are just as important.
@DanieldelCastillo_DELCASDA
@DanieldelCastillo_DELCASDA 4 жыл бұрын
Wonderful tutorial. Easy to follow and straight to the solution. Thanks
@JayAnAm
@JayAnAm 4 жыл бұрын
Thank you!
@Tech2457hello
@Tech2457hello 4 жыл бұрын
@@JayAnAm that really helpful and easy to follow tutorial. I have question, if one making roll ball game, can one use this method on some object that come near ball and push/attack ball ?
@ChrisBFWilliams
@ChrisBFWilliams 5 жыл бұрын
I learned a lot in just 5 mins.
@JayAnAm
@JayAnAm 5 жыл бұрын
That's great and always my goal:-)
@steel.croissant
@steel.croissant 4 жыл бұрын
What did you press to activate the volume at 4:32? P?
@xander1686
@xander1686 4 жыл бұрын
Yes .. P
@steel.croissant
@steel.croissant 4 жыл бұрын
@@xander1686 thanks
@HeinrichTsanov
@HeinrichTsanov 5 жыл бұрын
What if I want to make it follow my FirstPerson player? I can't find the "crunch" shown at 2:00.
@HeinrichTsanov
@HeinrichTsanov 4 жыл бұрын
@Guilherme Elegeda Thank you so much. Unfortunately I have submitted my project and graduated successfully 😂️
@coffeediction
@coffeediction 2 жыл бұрын
awesome thanks! I love how this works in UE5, really a successfull release
@ZimCrusher
@ZimCrusher 4 жыл бұрын
Sounds simple, but how would you have a ball follow your player, and add rolling? When I enable physics, the ball hits the ground, and stops. Without physics, if floats toward me, and arrives half inside the ground.
@hendrixgreengilmour
@hendrixgreengilmour 3 жыл бұрын
Hi everyone! Just wanted to reiterate, I know others have said it on here but I still wasn't getting it, when you are in the EnemyAIController Event Graph and creating the variable for the Key Name for the "Set Value as Object" node, what matters isn't the Variable Name of the Key Name at the top of the details panel on the right, but the Default Value at the bottom of the details panel on the right. I was watching the video in a small window and I kept missing that. I saw him name his PlayerKey and kept wondering how it worked. It's because the name there doesn't matter, it's the Default Value for the variable at the bottom of the details panel that matters, that's what must match up with the Blackboard Key in order for it to work.
@Leon-mk4bh
@Leon-mk4bh 4 жыл бұрын
very straight to the point, thank you so much for the tutorial.
@jakobdavenport1772
@jakobdavenport1772 3 жыл бұрын
Thank you, excellent and clear tutorial!
@hugobiri1245
@hugobiri1245 2 жыл бұрын
Amazing video bro
@RajeshPatil-yc5lk
@RajeshPatil-yc5lk 4 жыл бұрын
how can i use this tutorial for sidescroller game
@tacticalmythic7945
@tacticalmythic7945 2 жыл бұрын
Quick question… I have a cube for my AI. When out in the nab mesh before playing there is a hole where the AI is. Then when playing it moves fine, but now there is a hole in the bag mesh and the ai has to go around it?
@RinosaurPravi
@RinosaurPravi 4 жыл бұрын
I know it's late but how can I make him follow an object?
@hiroibwah
@hiroibwah 4 жыл бұрын
I'm making a first person game, how can I get the third person model into my level?
@PH0001
@PH0001 4 жыл бұрын
yeah Jayanam you are awesome and an expert : )
@bowdy4952
@bowdy4952 4 жыл бұрын
Hey, this works just fine, but there's a little problem. so i have a playable fox that i can switch to. i added that it could follow me but whenever i switch to fox and switch back, it doesn't follow me, any idea why is that?
@LuBRiHeRo
@LuBRiHeRo 6 жыл бұрын
I noticed a problem with the Enemy Ai Controller, to fix the issue change the parent class of your new controller under {class setting} to AI Controller that should fix problems with the nodes not showing up
@360ambiencevideos
@360ambiencevideos 4 жыл бұрын
how would I alter the speed of the ai so that it moves slower ?
@callumroberts4780
@callumroberts4780 4 жыл бұрын
Just change the max walk speed in the enemies character blueprint under character movement
@pxjesse8128
@pxjesse8128 4 жыл бұрын
I'm trying to add AI to a stag, but since it's a Skeletal Mesh Blueprint, there is no "Pawn" section in the BP settings to add the AI Controller Class. To what BP type do I need to convert it?
@Raidoton
@Raidoton 4 жыл бұрын
You should make a Pawn or Character BP for the stag and add the skeletal Mesh and the AI BP to it.
@yaboyconnor2240
@yaboyconnor2240 6 жыл бұрын
Hey Jayanam, how are ya?? I have a question for you & am kinda struggling to find an answer... How do you make ai make a sound (along with chasing the player) when it spots the player?? Sorry I’m kinda new to UE4. Cheers!!🍺👍🏻👍🏻👍🏻
@JayAnAm
@JayAnAm 6 жыл бұрын
Check this one out: answers.unrealengine.com/questions/324950/playing-a-sound-from-blueprint.html
@yaboyconnor2240
@yaboyconnor2240 6 жыл бұрын
Jayanam so do I just put that into the AI’s blueprint???
@JayAnAm
@JayAnAm 6 жыл бұрын
Whereever you want to play the audio
@VictorGO86
@VictorGO86 6 жыл бұрын
I can't see the blackboard key "PlayerObj" in the EnemyBT :( I think that its a bug of the program
@JayAnAm
@JayAnAm 6 жыл бұрын
What do you mean with you dont see it? You have to add this variable.
@VictorGO86
@VictorGO86 6 жыл бұрын
At minute 2:41, you chose the blackboard key "PlayerObj" in the combo box. It appears empty to me :(
@JayAnAm
@JayAnAm 6 жыл бұрын
Then the Blackboard is not assigned to the behavior tree. Check the Blackboard asset asignemt in the upper right hand corner of the bahvior tree.
@wallchkn2977
@wallchkn2977 6 жыл бұрын
Make sure you selected the ThirdpersonCharacter for the Obj, not the Blueprint you made for movement. That tripped me up.
@SkoolConnor
@SkoolConnor 5 жыл бұрын
is there a way to make it chase the player when it sees the player?
@CherriColaV
@CherriColaV 5 жыл бұрын
How do you make them give you some space so you can move
@mathewo07
@mathewo07 6 жыл бұрын
Any follow up video for attacking AI etc?
@mathewo07
@mathewo07 6 жыл бұрын
The OPFC nerd I see, I’ll check him out rn! Thanks for the reply
@denraddenrad8117
@denraddenrad8117 6 жыл бұрын
Hello Jayanam, Great tutorial. But two questions. How can I change the distance between enemy and player. And is it possible to have a delay of about 3 secs between following. I m not that familiair with the nodes in UE. Thanx in advance.
@3333-x8m
@3333-x8m 6 жыл бұрын
Nice bro just keep up the good vids about unreal engine and unity ;) #Punzys and u are my favourite youtubers !
@JayAnAm
@JayAnAm 6 жыл бұрын
Alright, thx a lot!
@TheFuryGlitch
@TheFuryGlitch 6 жыл бұрын
I followed this tutorial exactly except I had to create a second character blueprint instead of making a direct copy. Not sure if it's because I'm using top down instead, but the character isn't following my player.
@MrSoulast
@MrSoulast 6 жыл бұрын
did you properly set nav mesh boundaries? They must be green highlighted as seen on video.
@MzTypeOHnegative
@MzTypeOHnegative 4 жыл бұрын
Love it, quick question. How would you add AFTER IMAGES or like a shadow effect to a paper 2d character as they move??
@RajeshPatil-yc5lk
@RajeshPatil-yc5lk 4 жыл бұрын
that greeen part is not working what to do
@martinmegazor
@martinmegazor 5 жыл бұрын
Great video! Thank you :)
@SlenLen
@SlenLen 5 жыл бұрын
Gutes Video!! Danke für die Hilfe!!
@padelisanonymous6663
@padelisanonymous6663 5 жыл бұрын
thanks when i try it with nav it only works at start. Now i see with your video it works good (for now)
@aldovinuela1144
@aldovinuela1144 6 жыл бұрын
The best out there!
@JayAnAm
@JayAnAm 6 жыл бұрын
Thx mate!
@bagsy4884
@bagsy4884 5 жыл бұрын
Thanks man!
@christophe1584
@christophe1584 4 жыл бұрын
Thank you for the video, however i've done and verified everything and my NPC don't moove... i'm actually using 4.23.. :/
@NetFelixOfficiel
@NetFelixOfficiel 6 жыл бұрын
yes
@kianmunnich9761
@kianmunnich9761 11 ай бұрын
That can help me.
@pebdesign
@pebdesign 5 жыл бұрын
Hi, what do you have to change if I want my enemy to not follow a player but another actor? Also I want it to fly since they are to spaceships. Would be really happy if you could respond. I am working on project for the uni and we (my group) have not much time left and zero experience with game engines and coding. Sincierly Sasha
@Somiaz
@Somiaz 3 жыл бұрын
Simply doesn't work. Why? I don't know.
@Nacho-ms2pw
@Nacho-ms2pw 4 жыл бұрын
There is an easier way, No tree no blackboard just copy paste the person make the ai script do ai move to get player character and that will be powered by the tick. oh yeah and add navmeshbounds ;)
@ultraxdzn
@ultraxdzn 6 жыл бұрын
how to do this in unity?
@JayAnAm
@JayAnAm 6 жыл бұрын
Checkout my UFPS series, I have some examples
@TheChopinist
@TheChopinist 2 жыл бұрын
Titel Titel 😂
@ultraxdzn
@ultraxdzn 6 жыл бұрын
Are you interested in joining my team? We are currently working on 3D RPG. If you are interested please answet in the comment.
@dwdwipermana4134
@dwdwipermana4134 6 жыл бұрын
Unity Please :)
@JayAnAm
@JayAnAm 6 жыл бұрын
Next one will be Unity again
@dwdwipermana4134
@dwdwipermana4134 6 жыл бұрын
+Jayanam I Wait It :)
@marbleq9586
@marbleq9586 3 жыл бұрын
How could I use this to have another AI follow the first one?
Unreal Engine 4 Punch Animation & Collision
4:02
Jayanam
Рет қаралды 38 М.
Unreal Engine 4 Tutorial - Camera Switching
12:23
Ryan Laley
Рет қаралды 96 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Unreal Engine 4 - AI Damage Player
11:58
Titanic Games
Рет қаралды 96 М.
Unreal engine 4 tutorial: follow the player
3:36
Sparckman
Рет қаралды 35 М.
Unreal Engine 4 - AI Roam
9:22
Titanic Games
Рет қаралды 65 М.
Unreal Engine 4 Tutorial - AI - Part 4 Patrolling NPC
20:50
Ryan Laley
Рет қаралды 131 М.
Unreal Engine 4 - AI Chase Player
7:19
Titanic Games
Рет қаралды 59 М.
Unreal Engine AI with Behavior Trees | Unreal Engine
26:38
Unreal Engine
Рет қаралды 365 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН