Unreal Engine 4 Tutorial : AI Patrol (AI pt2)

  Рет қаралды 25,800

Totally Unreal

Totally Unreal

Күн бұрын

Пікірлер: 64
@TotallyUnreal
@TotallyUnreal 7 жыл бұрын
kzbin.info/www/bejne/qIemkGOontJ5gLs
@piattrocks
@piattrocks 8 жыл бұрын
Target Points as editable variables = mind blown. Very very cool. Thanks for this :)
@NoSoyElPeluca
@NoSoyElPeluca 9 жыл бұрын
Hello! I'm building a horror game and I want to tell a modification I made based on this. I did all that he did in the video, I added a box in a small area around it and added it to the blueprint as if this it a camera. So when it see me and I run around it , it does not lose sight of me so easily. Not like 30:39 xDD I reduced the IA movement speed too, so you can run away from it and make it lose track of you. Good for a zombie-monster game. Thanks for the video man, it helps a lot
@alec3419
@alec3419 8 жыл бұрын
Much Better than all the other AI Tutorials!
@zainabmurtaza7484
@zainabmurtaza7484 7 жыл бұрын
Thanku. Best tutorial ever.
@thresholdseven8942
@thresholdseven8942 8 жыл бұрын
very nice, works like a charm
@evanlo9647
@evanlo9647 8 жыл бұрын
you just got yourself a new sub
@ryansaper
@ryansaper 7 жыл бұрын
Around 11:40, when testing the 2 target points....my AI runs to one target point, and then he faces towards the camera (it's a side scroller so that's odd that he would face that direction) also once he reaches the first target, I can no longer jump over him for some reason. He permanently blocks me until I kill him
@austinza55
@austinza55 8 жыл бұрын
Good tutorial! but I have some issue that is my AI start to pick the same exact Target point and they stop moving by that how to fix that?
@S0raJr
@S0raJr 8 жыл бұрын
Instead of having the A.I "patrol." How would I have it move freely or walk around?
@jackpeterkettley
@jackpeterkettley 9 жыл бұрын
Hi there how do you switch between roaming around freely at a walking speed then when he sees you to a sprinting/running speed. I'm new to unreal so could you please explain simply with directions.
@StalkinU
@StalkinU 9 жыл бұрын
One big problem with this tutorial is they aren't actually patrolling. This setup would be more useful for something like a moving platform in mario. You should've showed us how to delay the acquisition of a targetpoint so they remain at the destination for a while. Another minor problem is they patrol in chase speed. A tip for when you make these tutorials would be, what can i do at a later date? Then add nodes accordingly. This way your followers can see where they can cut and paste your blueprint for stuff like animations. It would also increase the flow of your tutorials. I do very much appreciate the "lets experiment" mentality
@pauldavis2904
@pauldavis2904 9 жыл бұрын
Hi, +Totally Unreal thanks for making the tutorials. I have one question though. How can I get the line of sight from the Ai character to be blocked by an object. For example I'd like to be able to hide behind a wall and not have him see me. Any help would be great! Cheers!
@kayleeurwin9762
@kayleeurwin9762 9 жыл бұрын
+Paul Davis I did this with an AI by not even using the enemy pawn sight, I used a Raycast instead that returned the first object hit, and unless the first object hit was the player, do nothing :)
@pauldavis2904
@pauldavis2904 9 жыл бұрын
Thanks for the info - is there any chance to share how that looks as a blueprint? Thanks!
@TotallyUnreal
@TotallyUnreal 9 жыл бұрын
+Paul Davis I have a tutorial on raycasting / single line trace, perhaps that will help. kzbin.info/www/bejne/eZiznXWge8qoars
@pauldavis2904
@pauldavis2904 9 жыл бұрын
Hi Totally Unreal thanks for letting me know about your tutorial - I follow you and think you do a great job, it seems I missed this one though. Thanks!
@TheMrVerbal
@TheMrVerbal 8 жыл бұрын
got it all blueprinted, but it doesnt want to link my foreachloop array element output to set point1. says actor reference not compatible with target point reference. any ideas what i missed guys? and i have actor class set to target point in the get all actors class node.
@symonestrella9937
@symonestrella9937 8 жыл бұрын
your'e a God! teach us more sempai!
@marvinpalomo2642
@marvinpalomo2642 8 жыл бұрын
how to make more than 2 patrol points just for 1 ai?
@Markyroson
@Markyroson 9 жыл бұрын
This says part 2 yet I cannot find a part 1?
@alexw8903
@alexw8903 9 жыл бұрын
Markyroson look deep down in his videos, the old one is about 6 months old.
@TotallyUnreal
@TotallyUnreal 9 жыл бұрын
Double bow kzbin.info/www/bejne/annCYqahlsigjqM
@Markyroson
@Markyroson 9 жыл бұрын
Double bow thanks! Totally Unreal thanks for the link! :-)
@morgandunn7455
@morgandunn7455 8 жыл бұрын
exactly what version where you using it this video
@ryansenger408
@ryansenger408 5 жыл бұрын
You have a lot of likes for this Vid - so I am going to finish watching and I think I'll be pleasantly surprised but I need to mention that you started off this video talking about how much better this tutorial was than previous ones - but then you go on for the first few minutes to try to get your character to chase you properly... so I need to ask Why wouldn't you have done a test run before you started recording? There's definitely times where showing and fixing common mistakes that others will also run into is beneficial - but then there are times like this that just seem more unprepared. But that being said, keep up the great work in helping the community!
@nir3135
@nir3135 8 жыл бұрын
how can i set the speed value of the AI when it patrolling? to make it walk.
@nir3135
@nir3135 8 жыл бұрын
never mind i got it. you just need to get the character movment and then set the max walk speed
@fraydizs7302
@fraydizs7302 8 жыл бұрын
thanks
@OGPatriot03
@OGPatriot03 9 жыл бұрын
Is there a way to do this without Event tick? Should never use Event Tick for gameplay related tasks.
@timtimtim89
@timtimtim89 8 жыл бұрын
+Patriot 03 timers
@ethanwasme4307
@ethanwasme4307 8 жыл бұрын
+Patriot 03 Time line, or events that arn't called every frame, but I'm a noob and wouldn't have a clue on how to do this
@Grimeaper
@Grimeaper 9 жыл бұрын
What if there was a river, with a bridge any good way to avoid walking through the water and instead choosing the bridge? Because I am soaked and my programmer sucks.
@vg4461
@vg4461 9 жыл бұрын
+Grim reaper maybe by ending the navmesh onto the river banks?
@TotallyUnreal
@TotallyUnreal 9 жыл бұрын
+Victor Gabriel ^ Selectively place your nav meshs
@Rac00nn7
@Rac00nn7 9 жыл бұрын
So i have 4.9 and i have seen other people comment about it but it seems they have taken out Get Random Point " Can make another tutorial using a different method please.
@franconova8048
@franconova8048 8 жыл бұрын
+richard defazio Hey Richard, I'm not sure if you already got a solution for this, but I'm currently in 4.11, and the node I ussed for Destination instead of Random Point is "Get Random Reachable Point In Radius", you have to enhance the Radius on that node since that's the radius from where the AI is right now, and on the "Origin" of that node, you just plug in "Get Actor Location". Hopefully this helps, although I suppose you already fixed it
@MrQuackaberry
@MrQuackaberry 8 жыл бұрын
+Franco Vilanova that comment saved my ass
@BlueReeceo2
@BlueReeceo2 9 жыл бұрын
so deleted the new bit that you added towards the ai (not the patrol part) but the random choice part i deleted all of that part and now they do not move towards the points
@BlueReeceo2
@BlueReeceo2 9 жыл бұрын
I fixed it
@alexw8903
@alexw8903 9 жыл бұрын
Hey nice vid, good to see your following up on the last tutorial which you kind of just left hanging, I have an issue with this though, I have my AI set to the roaming thing and then follow me when it spots me but when it gets close enough it suddenly stops doing anything, the same happens when it hits a wall, do you know what's gone wrong? I have done exactly what's in your tutorial but I don't seem to be able to fix this as I have messed around with variables and added stuff here and there to see if I could fix it but nothing seems to work. Can I get some help.
@TotallyUnreal
@TotallyUnreal 9 жыл бұрын
Double bow By close enough is it touching you or within a radius of the player? When it hits a wall, does it not return to roaming around? Is the nav mesh built and covering the map properly? It's quite hard to help people fix these things through youtube comments as its not the same as debugging or working through a problem when its right infront of you but i will try my best to help you out. Let me know the answers to those first few questions and i'll try to recreate the issue my end and see where we can go from there :)
@alexw8903
@alexw8903 9 жыл бұрын
Yes its touching me, It doesn't go near the walls but when i get it to follow me and lure it into a wall it will stop and not return to wandering, the same when it touches me, the most common example of this is when I lure it through a door it got set up, It will follow me but slightly touch the door with its mesh and suddenly stop moving. And thanks for trying to help me out with this, I am very new to game development and I am just trying to learn the ropes and some of your videos are very very helpful.
@TotallyUnreal
@TotallyUnreal 9 жыл бұрын
Double bow Do you think you could make a quick video demonstrating what you mean as i am a little lost at the moment? I'm sorry you're having this issue btw.
@alexw8903
@alexw8903 9 жыл бұрын
I will see what I can do, Once I get one I will post it on my KZbin and I will comment again on this section to let you know its up.
@alexw8903
@alexw8903 9 жыл бұрын
Well I feel a bit stupid, as I was making the video I noticed that I didnt have the line's between AIMoveTo and SetInRange connected to the delay, the delay was just sitting in the middle :) Thanks for trying to help at least, also do you think it would be possible to show us how to make the AI do more advanced things, like open closed doors, attack etc as that would be really interesting to see and to work from.
@randomguy1200
@randomguy1200 8 жыл бұрын
Using 4.9 and self won't connect with pawn in Ai Move to
@kaerustation
@kaerustation 9 жыл бұрын
thanks!
@SuicidePlaysOnPC
@SuicidePlaysOnPC 9 жыл бұрын
Hey bro!! AWESOME tutorial...could you make one about how to make this AI shooting from range like an enemy soldier, and maybe decrease the player HP as a variable ? plz awnser me, and ty for doing this, you help us a lot, well explained! :D
@TotallyUnreal
@TotallyUnreal 9 жыл бұрын
Suicide Plays That should be possible although I do have real life commitments to attend too, i would like to make something like this. Thank you for your suggestion.
@SuicidePlaysOnPC
@SuicidePlaysOnPC 9 жыл бұрын
Totally Unreal ty for the reply, and i understand that every video you do takes time and effort... just wanted to ask, and say thanks to you since i'm just a new sub...greedings!
@midgetkricket5096
@midgetkricket5096 9 жыл бұрын
ok I hope someone can tell me what I did wrong here but in the bp he set a for loop a branch and a target point then he connect the target point back to array element in the for each loop and I cannot seem to get mine to connectI am currently using UE4.9.2 I'm sure that has something to do with it but any advice would be nice
@sarvman
@sarvman 8 жыл бұрын
well that was interesting. in 4.11.2 the whole thing gets twitchy. failed to work in the end. sad.
@lucasmarshallw.943
@lucasmarshallw.943 8 жыл бұрын
Didn't work. The ForEachLoop couldn't connect to the Point1 or Point2 variables.
@SakoresDark
@SakoresDark 9 жыл бұрын
Hey, giving us a much wanted sequel that's long overdue :) you're acting like a big name dev already~ Seriously though, this was very helpful, thanks a lot ^^
@vista777
@vista777 8 жыл бұрын
Great tutorials! A problem with your code though: adding a timed delay before setting in range to false MOSTLY fixes the problem, however if he detects you, loses you, and detects you again before the time runs out he will decide to ignore you and find a random point. I'm going to try to figure out a solution and comment on this post.
@kennethhenson9554
@kennethhenson9554 7 жыл бұрын
okay, I figured out the way to make the AI work smarter, in your delay 5 seconds, and before your delay add set in range to true, and loop success back to the original set in range to true.
@illpoet13
@illpoet13 8 жыл бұрын
it actually makes me feel a ton better that ue4 is a jerk to everyone, not just me.
@yghtim
@yghtim 9 жыл бұрын
For me they all just runs in to a corner on the map, even other AI's on Another nav mesh runs in to the end of their nav mesh because they want to get to that spot
@marekartist8441
@marekartist8441 8 жыл бұрын
You could use the Array Length instead of foreachloop :) Anyway, very good video, thanks :)
@dzonemanarmy
@dzonemanarmy 8 жыл бұрын
3:14 LOL
@randomguy1200
@randomguy1200 8 жыл бұрын
NOTHING worked
@Ruthoranium
@Ruthoranium 8 жыл бұрын
get rekt.
Unreal Engine AI Tutorial #1 - AI Guard Part One
26:01
zoombapup
Рет қаралды 49 М.
Unreal Engine 4 - AI Damage Player
11:58
Titanic Games
Рет қаралды 96 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН
Жездуха 41-серия
36:26
Million Show
Рет қаралды 5 МЛН
Unreal Engine 4 - AI Improved Patrol
13:35
Titanic Games
Рет қаралды 25 М.
Unreal Engine 4 Tutorial - AI Pawn Sensing
3:22
Tesla Dev (Gavin Milroy)
Рет қаралды 56 М.
UE4 Ledge Climbing Tutorial Part1
32:20
Crocopede
Рет қаралды 103 М.
Unreal Engine 4 Tutorial - 3D Health Bar (NPC's)
4:05
Tesla Dev (Gavin Milroy)
Рет қаралды 59 М.
Unreal Engine 4 Tutorial : AI Behaviour Tree #1 (Chase & Roam Updated)
24:33
Unreal Engine 4 AI Tutorial Introduction and Theory
17:24
zoombapup
Рет қаралды 36 М.
UE4 Tutorial - Health Bar + 2 Ways to Take Damage
22:13
Ben Ormstad
Рет қаралды 58 М.
Unreal Engine 4 Tutorial - Night Time Scene
2:28
Tesla Dev (Gavin Milroy)
Рет қаралды 155 М.
$1 vs $500,000 Plane Ticket!
12:20
MrBeast
Рет қаралды 122 МЛН