Unreal Engine 4 - AI Chase Player

  Рет қаралды 59,573

Titanic Games

Titanic Games

Күн бұрын

Пікірлер: 64
@Will-bn9km
@Will-bn9km 8 жыл бұрын
Great tutorial man, I'm loving the tutorials they're helping out so much
@blinkingnora
@blinkingnora 7 жыл бұрын
How would you make an AI roam around until it spots you, where it then begins chasing you down?
@mantronicsenterprises
@mantronicsenterprises 7 жыл бұрын
Just add an "OnSeePawn" node to the AI BP and set it up using the "AIMoveTo" node
@grazorchaos188
@grazorchaos188 4 жыл бұрын
@@mantronicsenterprises theres nothing called ad onseepawn though
@akame3000
@akame3000 4 жыл бұрын
@@grazorchaos188 did you add the component?
@avinashprabhakar7367
@avinashprabhakar7367 7 жыл бұрын
at 5:53 in the menu I am not able to find switch on EAIState. Does anyone know why it is not there?
@avinashprabhakar7367
@avinashprabhakar7367 7 жыл бұрын
NVM seems like closing and reopening ue4 made it work.
@vincentfallen
@vincentfallen 5 жыл бұрын
i love ur videos, easy to understand.
@ia_fortune
@ia_fortune 6 жыл бұрын
you could do "switch on int" setup AIState to "int" exec to 0 . 1. default it's work
@elijahgames192
@elijahgames192 2 жыл бұрын
when I have multiple enemies in the level that chase the player they get crowded in a hallway or corner, how could I fix this problem?
@jake87irwin
@jake87irwin 3 жыл бұрын
Anyone else have trouble adding the AI into a new Level? I'm in the same project just created a new level. Add in the same 3rd person character, the AI Enemy, and the Nav Mesh Bounds. When I hit play the AI just stands still. I tried migrating the AI content to another project and same thing happens.
@ripchan1413
@ripchan1413 5 жыл бұрын
when the actor gets to me nothing happens the explosion doesn't happen nor does the sound? any advice? I do not have a skeleton mesh I am using a sphere
@thatonegamedev5447
@thatonegamedev5447 2 жыл бұрын
great video could you possibly give it animations when it hits you
@justchicknugget
@justchicknugget 2 жыл бұрын
nice tutorial!
@Preirin
@Preirin 2 жыл бұрын
For some odd reason, the first time I did this the AI chased me just fine. When I added the explosion, etc., he stopped chasing me. After several attempts to correct this, I deleted everything and started over fresh. he roams just fine but he will not chase me no matter what I do. Anyone else have this issue?
@gamebossbort6585
@gamebossbort6585 4 жыл бұрын
i cant find EAIstate at all.
@basicaccount3414
@basicaccount3414 4 жыл бұрын
I tryed to make my AI chase other AI it dosen't work because UE4 is not reading properly
@habibismassacre
@habibismassacre 4 жыл бұрын
I have a AI Roam And A AI chase the Roam works but the chase doesn't could you please help?????
@AmulBhatia85
@AmulBhatia85 7 жыл бұрын
How can we change the AI movement speed ?? or can we change the animation to walk or any other animation ?? How please make a tutorial on this also.. Thanks
@SolitarySubstructure
@SolitarySubstructure 7 жыл бұрын
Select "character movement" above "pawn sensing" in BluePrints. On the right side of screen you will see "character Movement (general settings)
@TheElephantGamer150
@TheElephantGamer150 7 жыл бұрын
E Curb how do i make it walk instead of run
@rifat.ahammed
@rifat.ahammed Жыл бұрын
Thank You
@jawsomeproductions
@jawsomeproductions 7 жыл бұрын
Thank you for posting this...how do we make the AI stop chasing the player within this blueprint? Can't figure it out for the life of me.
@gitnisEg
@gitnisEg 7 жыл бұрын
In the Chase State section right between the Delay and Chase Player you have to create a Branch. Just like in the beginning of the blueprint you had Pawn Sensing connected to Sensing Updates which is connected to Branches condition, so copy these two and paste it next to your new Branch and connect it to its condition. From Branches True statement connect it to Chase Player, from False statement drag and call Patrol. Not sure if it should be like this but it worked for me.
@unrealenginecharacters8902
@unrealenginecharacters8902 5 жыл бұрын
Hi.....How can i make those AI to run more slow than me ???
@sridilox
@sridilox 6 жыл бұрын
the roam is working but the chasing isn't ?
@rubenpinheiro6288
@rubenpinheiro6288 6 жыл бұрын
the exact same is happening to me. He roams around the place I set up. But when I change it to chase he just stands there and do nothing. I'm not sure what I am doing wrong.(EDIT) I've noticed that replacing Event BeginPlay for Event Tick it fixed it and the AI started to follow me (however, I've only used Even Tick for the chase, as the roam was good I left it has Event BeginPlay, also if both are on the chase will overcome the roam because Event tick sends a signal every second to the character).
@meowkadoodlegarfield1211
@meowkadoodlegarfield1211 4 жыл бұрын
@@rubenpinheiro6288 Thanks bro, you save my life XD
@sensenmannka532
@sensenmannka532 7 жыл бұрын
can i change the moevementspeed???
@AmulBhatia85
@AmulBhatia85 7 жыл бұрын
Hey did you get the solution ?? If yes, can you tell how ?? and how can i change the default run animation of the AI to Walk or any other animation ??
@SolitarySubstructure
@SolitarySubstructure 7 жыл бұрын
Select "character movement" above "pawn sensing" in BluePrints. On the right side of screen you will see "character Movement (general settings)
@hurtlockergaminghd3822
@hurtlockergaminghd3822 7 жыл бұрын
could you add a attack one on the E-num next plx ? XD great tutorials.
@darikostov9583
@darikostov9583 7 жыл бұрын
pls help me i need to know how to make character chase character
@CreeperSlenderman
@CreeperSlenderman 6 жыл бұрын
how to easily make a illusion effect make a coin rotate and it will rotate both sides 0:00 done
@nf2303
@nf2303 6 жыл бұрын
oh shit you are right
@hex.vagyok
@hex.vagyok 5 жыл бұрын
Awesome thanks! How can we achieve that AI stop following us after a certain distance?
@DonMatek
@DonMatek 5 жыл бұрын
I've added a little thing to my AI char that makes him move closer to get in shooting range. Simply added a new custom event that has a branch checking a condition. Add a new float variable. This is your desired shooting distance. Event Check Range - > Branch Get distance to (other actor is the actor you cast to On Pawn Sense) compare the return value less or equal to your new variable and connect it to the branch. Then you decide what you want to do when distance is true or false. You can have your AI stop using "Stop Movement Immediately" and then have him return to say his spawn point. If you want to make this work you must set the spawn point. Simply add a new vector variable and a setter to your begin play in the AI event graph. You just use AI move to and as a destination use your new vector variable. Works great for me when my AI receives too much damage and then he runs back to his spawn point. Good luck.
@Tempo-
@Tempo- 6 жыл бұрын
i cant find switch on EAIstate, i even closed and reopened it many times, pls help?
@elreyenelnorte6428
@elreyenelnorte6428 6 жыл бұрын
Did you find a solution?
@Glewstik
@Glewstik 5 жыл бұрын
Trying to set this up for VR and I can't get it to work does anyone have any advice?
@ctphamster2700
@ctphamster2700 4 жыл бұрын
Did you find out how to get it to work? I'm having the same problem.
@akame3000
@akame3000 4 жыл бұрын
@@ctphamster2700 what exactly
@dhruvpaidukle835
@dhruvpaidukle835 4 жыл бұрын
in First Tutorial Ai is not moving
@yaboyconnor2240
@yaboyconnor2240 6 жыл бұрын
Hey Titanic Games, how are ya?? I have a question for you & am kinda struggling to find an answer... How do you make ai make a sound when it spots the player?? Sorry I’m kinda new to UE4. Cheers!!🍺👍🏻👍🏻👍🏻 Edit: Also, can anyone else help?? Any guidance is HIGHLY appreciated👍🏻👍🏻👍🏻
@LrdOfNightmares
@LrdOfNightmares 6 жыл бұрын
Connor Day Hey Connor! Really simple. Go to the event graph, select the PawnSensing component, right click into the graph and type "AddOnSeePawn" then "cast to" your character, connect the execution pin and for the Pawn pin connect the Object of the cast node, use a "DoOnce" node (if you don't the sfx will loop infinitely), and then use a "PlaySound2D or PlaySoundAtLocation" select your sound and you are done!
@yaboyconnor2240
@yaboyconnor2240 6 жыл бұрын
LrdOfNightmares thank you for being so helpful & nice!! Would you mind providing a screenshot of the blueprint for this?? Sorry once again I’m kinda noob & don’t want to ask for too much!!
@LrdOfNightmares
@LrdOfNightmares 6 жыл бұрын
Connor Day Sure, I'll show you in a bit!
@LrdOfNightmares
@LrdOfNightmares 6 жыл бұрын
Check it out! ibb.co/cwJY9J
@yaboyconnor2240
@yaboyconnor2240 6 жыл бұрын
LrdOfNightmares great thank you!! I’m gonna try it out to make sure it works👍🏻👍🏻👍🏻
@Michael-gf1jn
@Michael-gf1jn 7 жыл бұрын
Thank yoU!
@lordew9476
@lordew9476 7 жыл бұрын
Отличные уроки
@Ali107
@Ali107 7 жыл бұрын
You just made a creeper....
@basicaccount3414
@basicaccount3414 4 жыл бұрын
I hate Minecraft
@khurramsaeed8295
@khurramsaeed8295 7 жыл бұрын
can you answer 1 question of mine? i don't have time to chat or make friends on chating sites but just to let it knows it about weather it is right way to treat or not ,this question is nothing to do by your tutorial and sorry please don't think i am gay or something odd kind of person .So my question is if i fall in love with a guy because of his too much extraordinary kind nature and as example by someone i get inspired too much so if i try to kiss him with no bad evil feelings but pure heart thoughts in my heart ,does this allowed between two male human beings by law ofcourse it is not the gay kissing it's the kiss of love of respect?
Unreal Engine 4 - AI Patrol
7:26
Titanic Games
Рет қаралды 47 М.
Unreal Engine 4 - AI Damage Player
11:58
Titanic Games
Рет қаралды 96 М.
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
БАБУШКА ШАРИТ #shorts
0:16
Паша Осадчий
Рет қаралды 4,1 МЛН
ВЛОГ ДИАНА В ТУРЦИИ
1:31:22
Lady Diana VLOG
Рет қаралды 1,2 МЛН
Unreal Engine 5 Tutorial - AI Part 1: Character Setup
9:16
Ryan Laley
Рет қаралды 180 М.
Unreal Engine AI Controller Follow Player
5:24
Jayanam
Рет қаралды 62 М.
AI Sight Detection And Chase - Unreal Engine 5 Tutorial
7:33
Matt Aspland
Рет қаралды 66 М.
3 Hours vs. 3 Years of Blender
17:44
Isto Inc.
Рет қаралды 6 МЛН
Iron Lung is not as bleak of a setting as people think(sorry)
19:16
Unreal Engine 4 Tutorial - AI - Part 1 The Behaviour Tree
16:43
Ryan Laley
Рет қаралды 380 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,6 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН