Unreal Engine 4 - AI Patrol

  Рет қаралды 47,349

Titanic Games

Titanic Games

Күн бұрын

Пікірлер: 44
@namenotjef8175
@namenotjef8175 4 жыл бұрын
4 years later and this is still helpful thanks btw now i can make my horror game monster!
@johnmannp
@johnmannp 4 жыл бұрын
Thank you so SO much for these tutorials! :)
@virostep7062
@virostep7062 7 жыл бұрын
I was watching and I can’t seem to do the AI state part can you tell me the vid that you do that in?
@DangerSideburns
@DangerSideburns 6 жыл бұрын
"Unreal Engine 4 - AI Chase Player"
@XXALEXPROXX12
@XXALEXPROXX12 8 жыл бұрын
Ill wait for the next video , Thanks for the series of AI tutorials you make it in the way new people can understand and thats what i apreciate , nice video bro keep it up :D btw how do i set up that the ai character deals damage to my health bar in my hud? just a little thing that might come in cool , thanks for the tutorial :D
@kanotanakachi6296
@kanotanakachi6296 5 жыл бұрын
Im having trouble getting the AIState you have in the video in order to do the patrol
@tristanbaker8198
@tristanbaker8198 2 жыл бұрын
If anyone is having problem where the AI will patrol to one Target Point and then just stay there, look at your AI MoveTo node and plug On Fail into the delay.
@morpex__x
@morpex__x 4 жыл бұрын
How do I set up a waypoint in bluprint itself ?So you don't have to choose points on stage
@gvm4817
@gvm4817 4 жыл бұрын
Thanks for the video, but how can you do that when you're patrolling when you see us, break the patrol and look for us
@skywap2
@skywap2 4 жыл бұрын
Thanks You very very nice am French
@reecemurdoch997
@reecemurdoch997 7 жыл бұрын
If your ai doesn't move to location when it's being spawned in, try adding a delay between 'patrol custom event' and 'Ai MoveTo'
@vivegamespk
@vivegamespk 3 жыл бұрын
It helped me.thanx
@ianadrian3858
@ianadrian3858 8 жыл бұрын
Hey it's a great tutorial, I find most of your tutorials are easy to follow along :), thanks for the videos, especially the RPG Series. one question though I find there's alot of people using Behaviour Trees to set up the AI, which one is better? I find this one is simpler , and easy to use though.
@crusaderpr7683
@crusaderpr7683 6 жыл бұрын
quick question how do i make the AI walk while patrolling? i am making an AI cop and i want to patrol the area walking instead of running
@JoryStultz1234
@JoryStultz1234 4 жыл бұрын
Slow down the walk speed in the inherited character movement inside the blueprint.
@mfbproduction1971
@mfbproduction1971 8 жыл бұрын
keep it up man your toturial are very helpfull 😊
@sharondowner6659
@sharondowner6659 7 жыл бұрын
I appreciate the tutorial!!!
@jyotirmaysharma1742
@jyotirmaysharma1742 5 жыл бұрын
I want to know how can we switch the state of AI from patrolling to chasing when it sees the actor?
@gvm4817
@gvm4817 4 жыл бұрын
Hi. I can add onseepawn to any of the actions, and where is it placed, for example when patrolling, if it sees me it follows me? were I add the node.. thanks.
@michelsantos4236
@michelsantos4236 3 жыл бұрын
TY friend,
@dualperceptiongames
@dualperceptiongames 7 жыл бұрын
Hi Jackson, great tutorials. I Was wondering though, is there a way to get The actor to turn in place before making their next move? It doesn't seem to be an issue on your example as the character is sprinting around but in mine they are walking slowly and it looks a little odd with them snapping to a direction. Anyway, keep up the good work! D
@MistahX99
@MistahX99 5 жыл бұрын
How did you get it to walk?
@Elizabeth-ez9oz
@Elizabeth-ez9oz 8 жыл бұрын
Loving your tutorials! They are very helpful! I have a question about the patrolling using the waypoints set as an array. Being a developer by trade I hate duplicating code so each copying that multiple times and counting doesn't seem like good coding practice, so I'm wondering if there is a reason you didn't suggest using a for loop. Would this work with a for loop or does the delay function prevent that from working?
@titanicgames4785
@titanicgames4785 8 жыл бұрын
Hi there. Yes that is precisely the reason. For loops don't work with latent actions like delays (as far as I know). What you'd probably want to do instead is create an array of actors/target points or vectors and create an integer variable for keeping track of which point you're at. Then create a recursive function that gets the current target point (the integer variable), moves the pawn to that target point, then on success it checks if the current point was the last point in the array, and if so then start over but if not then move to the next target point in the array. I'll try to post a video explaining this better soon. I hope that helps!
@MARCOAURELI0
@MARCOAURELI0 6 жыл бұрын
how can I get a slower spin before ai gets the random point?
@adrienhartman6811
@adrienhartman6811 4 жыл бұрын
Splendid
@Michael-gf1jn
@Michael-gf1jn 8 жыл бұрын
Thank you! Good stuff!
@creadoc
@creadoc 8 жыл бұрын
Thanks much! I was wondering if there is a way to set the destination target points to be random, so that way it seems that the AI don't necessarily appear to have a "Patrol Route"? I like the way you explained it here, and this was just a question that came to mind while watching. Props for explaining the blueprints in a way that shows what is happening when you write them! Sort of explains the theory behind the blueprint.
@titanicgames4785
@titanicgames4785 8 жыл бұрын
There's a couple things you could do depending on what you want to accomplish. If you want the AI to just wander towards a point but not necessarily at that point, but near it, you can use the same MoveTo function but for the location, drag off and type Get Random Point in Navigable Radius or Get Random Reachable Point in Radius. You'll need to define an origin then which could be the location of your TargetPoints in the world (get your target point reference and then GetWorldLocation from it). Then define a radius around that point (maybe 500). And then change the acceptance radius to something larger like 250 maybe. That might not be what you are looking for but I hope it at least helps you get an idea of different techniques you could use.
@clebo99
@clebo99 5 жыл бұрын
Hey Jackson. Really strange issue. I've done your ROAM/PATROL/CHASE on probably half a dozen projects and it usually works fantastic. I must be having a brain fart of something. Now, when I do this, all of the AI characters (doesn't matter which I choose) goes to the exact center of the map. It is so strange. Doesn't matter where I place them. I've been migrating these into other projects and the problem occurs. I guess I could start from scratch and see if I'm missing something dumb...but I can't for the life of me figure out what I'm doing wrong. I'm on 4.22. Please help!!!!! Thanks. Chris
@redknuckles7655
@redknuckles7655 2 жыл бұрын
same issue any luck 2 years later? haha
@phaeton01
@phaeton01 7 жыл бұрын
when you're laying the target points, can you lay out out a whole bunch of them and place them in an array to have the ai randomly pick a different once each time? is it as simple as i just made it sound?
@titanicgames4785
@titanicgames4785 7 жыл бұрын
Yeah you can definitely do that! And if you want to make it so the AI can't pick one they've already been to, you can add the index of the previous target point in the array to a new array of integers. Then you can compare the values from the integer array with the new indices the AI tries to pick, and force them to go to one they haven't gone to. I can make an update tutorial to this if that'd help
@phaeton01
@phaeton01 7 жыл бұрын
that would help massively, im following them right now but i havent spotted where to place the random integer now
@edensagasta7735
@edensagasta7735 7 жыл бұрын
Hi thanks for this tutorials but my question is... wheres the next video showing how AI goes from roaming to chase then to attack player? would be really helpful
@r1icogaming938
@r1icogaming938 7 жыл бұрын
Hey I'm trying to make a RTS and command an ai to gather resource but it is kinda dificult would you be able to make a tuto for that? please
@WilliansBenites
@WilliansBenites 7 жыл бұрын
hello friend .. as I do so that the enemy only walks patrolling ... and when the character enters the enemy's sight .. the enemy changes from walking to running the character ... I hope your quick answer .. the tutorials are excellent thanks
@supritvaidya3270
@supritvaidya3270 6 жыл бұрын
I'm a newbie in this field so I don't know if this is correct or not but you can decrease maximum walking speed so that the character won't run behind you Hope that's the answer you were looking for
@rifat.ahammed
@rifat.ahammed Жыл бұрын
Great
@raeesjames3859
@raeesjames3859 7 жыл бұрын
Thank you so much for this dude! Really helpful tutorials! I have a problem though, my AI roams and delays, but because I'm making a SideScroller game, it wont chase me once I enter the navmesh bounds
@superdeath5631
@superdeath5631 5 жыл бұрын
TY
@gabrielign85
@gabrielign85 4 жыл бұрын
Yo can u help me make a document of this? like ryt now? 😆
@mcfat1039
@mcfat1039 6 жыл бұрын
Patoral activated
Unreal Engine 4 - Creating Landscapes with Heightmaps
6:08
Titanic Games
Рет қаралды 12 М.
Unreal Engine 4 - AI Damage Player
11:58
Titanic Games
Рет қаралды 96 М.
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
So Cute 🥰 who is better?
00:15
dednahype
Рет қаралды 19 МЛН
AI Patrol Tutorial - Unreal Engine 5.2
5:44
Lisowi
Рет қаралды 9 М.
AI Sight Detection And Chase - Unreal Engine 5 Tutorial
7:33
Matt Aspland
Рет қаралды 67 М.
I Remade Star Wars VFX in 1 Week
10:39
ErikDoesVFX
Рет қаралды 2,8 МЛН
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,3 МЛН
Unreal Engine 4 - Loading/Opening Levels
8:41
Titanic Games
Рет қаралды 81 М.
How to use AI MOVE TO node in UE4 || BLUEPRINTS || UE4 TUTORIALS
7:28
How To Make Gamepad Navigation For Menu/UI Widgets In Unreal Engine 5
9:00
Unreal University
Рет қаралды 10 М.