UPDATED VIDEO : kzbin.info/www/bejne/qIemkGOontJ5gLs
@looniper35518 жыл бұрын
For OnSensePawn, don't right click in the graph, click on the PawnSensing component in the Components list (top/left) and use the green button to add it in the Events section (bottom/right) of the Details tab. Nice video though.
@ggrizzle8 жыл бұрын
+Looniper Haha thanks for that I was having trouble finding it.
@srenter18387 жыл бұрын
TY dude
@80Dalia087 жыл бұрын
Dude you literally saved me from breaking down
@vydraf9 жыл бұрын
I love you man :D :D :D this series help me to understand AI way better than literally 50 other youtube videos, Merry Xmas and happy new year ;)
@Chefmaks9 жыл бұрын
For the ones who still can't figure our how to get the AI moving again after he lost sight of you: You just need to add a "set InRange" behind the "On Success" which sets it FALSE. I also prefer two delays in this BP, one 2sec delay between the "On Success" and the "set InRange" I just talked about, and one between both "On Success" and "On Fail" and the "set Moving" to FALSE on the bottom of the BP which i personally like to be somewhere between 0,5 and 1sec! Great and helpful video though, best wishes from germany! :)
@enman0098 жыл бұрын
Great!
@KovaaK_of_qw9 жыл бұрын
Random thing that tripped me up when OnSeePawn was never being triggered - I was spawning my AI dynamically, and the "Auto Possess AI" for the Pawn was set to only for when it is placed in the world. After setting that dropdown to "Placed in World or Spawned," everything was well. Thanks for the tutorial!
@sirpumpkinpie67808 жыл бұрын
'Get Random Point' is not appearing for me! Please help!
@DaveMicrowavesGames7 жыл бұрын
5:08 When I drag Pawn to do Get reference to self, it won't work. It won't allow me to do that, so I'm stuck now.
@Lampgram7 жыл бұрын
Did you solve it? Explain how
@CsoszGergo10 жыл бұрын
Keep these tutorials coming. Great job!
@TotallyUnreal10 жыл бұрын
Thank you very much i most certainly will, Do you have anything particular you'd like?
@pauldavis29049 жыл бұрын
Totally Unreal Hi Totally Unreal, great tutorial, did you find a way to get the enemy to start patrolling again once it had seen you? also, can the ai see through walls, it seems that it does. Is there any way to stop this happening? Cheers!
@TotallyUnreal9 жыл бұрын
Paul Davis Take a look at the long overdue part two which wraps this up and also takes a look at some more advanced patrolling methods! kzbin.info/www/bejne/kGKbmKCXoJejbZY
@velkaraa7 жыл бұрын
What can you use instead of 'Get Random Point'? I heard that with the updates of UE4 there isn't a 'Get Random Point' node anymore and with 'Get Random Point in Navigable Radius - Origin = Get Actor Location' doesn't work.
@TornadoTwins9 жыл бұрын
This was actually super useful dude, well done! Any thoughts on how to reset the behavior to going back & finding a point on the navMesh after you've shaken him off? The See event sets the bool to true, but what sets it to false again? Behavior tree maybe?
@TotallyUnreal9 жыл бұрын
TornadoTwins Thanks, stay subscribed for more! As per your question, you could set a transform variable when he catches sight of you and when he has lost sight, call the move function that has him move to a location and rotation and break the transformt hat you stored earlier and hook those into it. I cant give you a specific way of doing this right now as im not at my PC but thats how i think i would go about doing it. Hope this helps
@ericng3249 жыл бұрын
AdvancedGamers34 Could really use an answer to this, the tutorial was great but not finishing this part made me feel cheated somewhat :L
@ericng3249 жыл бұрын
AdvancedGamers34 My graph looks like this, note where the info is going to and it just stays there and doesn't complete the loop when I get seen but am able to get away from vision
@ericng3249 жыл бұрын
AdvancedGamers34 imgur.com/IMUULyp
@TotallyUnreal9 жыл бұрын
Eric Ngoei you never set the inrange variable back to false, on fail, set inrage to false again. As far as feeling cheated, i have my own life and work to be getting on with, i do these tutorials for fun when i have time too, i cant help each individual case.
@LolFishFail9 жыл бұрын
How would you make the AI run away from you instead?
@O_Obsidious7 жыл бұрын
Anyone who has trouble finding OnSeePawn, click on the PawnSensing1 component in the EventGraph. Then Right-Click on the node graph. Click the arrow on Add Event For Pawn Sensing, Then Event Dispatchers, and then click on Add On See Pawn.
@howielu18418 жыл бұрын
I know how to fix the problem about the "Get Random Point". Drag the Destination and chose the Random Point in Navigable Radius. And drag the Origin and chose the Get World Location, you need improve itself as a variable. Don't forget to set Radius value.
@suzannadraws11788 жыл бұрын
Thanks!
@suzannadraws11788 жыл бұрын
what do i improve as a variable?
@jesusblas58538 жыл бұрын
hi, could you tell me the difference between PawnSensing and AIPerception components?
@skelmirmorgul23778 жыл бұрын
Hi. I'm new with the UE4 (using 4.13) and want to make this tut in a Side Scroller Scene. How can i make the enemy only walks on one axis (y)?
@noah43748 жыл бұрын
I have a question. i did everything except get random point which is replaced by get random point in navigable radius if im correct. but my ai keeps running to the 0,0,0 point on the map
@marnofranck62049 жыл бұрын
Is there a way to make the enemy attack you if you attack him or them first?
@joaquincusicanqui74217 жыл бұрын
Hey good tutorial but i have a little problem :c Im in a new version and the random point not appear, do you have other form to do the ai move to anypart of the map like put more bluprints ? :,c
@moviemonster998 жыл бұрын
HELP!. Could you please tell me what option do I have to check or uncheck in order for AI not to collide with static mash objects inside the Navmash. When Ai hits the Static mash it restarts the level. Restart is ok but only when AI collides with my main player. Help really need answer Please. Thanks!!!
@toby52807 жыл бұрын
which unreal engine version are you using? i dont have random point in 4.10... im currently using 4.15 but yours is older so it doesn't work
@fatalundead41587 жыл бұрын
This video saved my life lol. Thanks mate
@Vespian908 жыл бұрын
What if i want the AI to just chase an Actor instead of a pawn? like a ball with physics?
@ricardo.cardena7 жыл бұрын
im using unreal engine 4.15 and i cant find the random point, i just found random point in navigable radius and i have to set an origin point
@Matthew.19949 жыл бұрын
okay how can i do this... i want the enemy to chase me when i am not looking at him and stoping when i am looking.. i have it like this.. he chase me, i look, he stops but when i look away he dosent chase me again.. there is no function to set a boolean to false when he is out of the view cone.. only when he is in it.. there is no "on dont see pawn" orsomething
@patrickpersaud35819 жыл бұрын
Using Unreal 4.9 and I can not seem to find "Get Random Point". I can find "Get Random point in Navigatable Radius" or Random Reachable Point in Radius". Ideas why?
Take a look at the long overdue part two which wraps this up and also takes a look at some more advanced patrolling methods! kzbin.info/www/bejne/kGKbmKCXoJejbZY
@TimeoutMegagameplays9 жыл бұрын
+Totally Unreal I am in Unreal Engime 4.9 and it doenst have "Get Random Point" How do i resolve this?
@FilipeTessaro9 жыл бұрын
+Timeout megagameplays I´m stuck in the same point =/
@jakubzbucki37739 жыл бұрын
+Totally Unreal I have a new version of unreal engine, how can i get the AI to move to random locations if i don't have the right node?
@BirthEaterll9 жыл бұрын
+Totally Unreal same problem here, no random point anymore
@Kachikapow8 жыл бұрын
+Jeremy Tokasar I used the Get Random Reachable Point in Radius node, you just have to set the Origin to the AI character's location.
@verdian899 жыл бұрын
You use static or dynamic navmesh?
@SkilledYetTalentless8 жыл бұрын
Well and good, but does that green colour on the navmesh mean anything? Because I've also got a navmesh in the scene, which does cover all of the walkable ground, but for one, the movement doesn't work, and fro second there is no green highlight. I assume green means good, so is there a setting involved, or have I done something wrong?
@TotallyUnreal8 жыл бұрын
+Skill - Talent = Me Green is just a visual indicator of the walkable area :)
@TotallyUnreal8 жыл бұрын
+Totally Unreal p.s it can be toggled by pressing "p"
@Jack66148 Жыл бұрын
How to assign different actors different navmeshes o agents?
@MrDomen158 жыл бұрын
Hi, i've got a problem with random destination. My enemy is going to the same location every time i play. I'm using ,,Get random point in Navigation radius" with wired to ,,Origin" ,,Random Vector Unit". Can you help me?
@flcrazygamer53108 жыл бұрын
On origin you need to have the actor location of the AI pawn
@vincentfallen8 жыл бұрын
whats the difference between cast to character and cast to 3d character ? O_O
@SheepyDaSheep7 жыл бұрын
i do not have the get random point component
@vg44619 жыл бұрын
How did you put the target point?
@yottythegreat7 жыл бұрын
could anyone tell me how he got the charater's in his content tab...i cant find anything like that, only a starter content pack that does not have any characters
@RobStimpson8 жыл бұрын
i copied this but every time my character will run to the exact same spot on the map and just stop no idea why,anyone got any ideas?
@detztive44439 жыл бұрын
I make event tick go thru gate and made custom event for your AI move random point and i added 1st branch if it go True go while loop seeking enemy so it can re tick thru gate and game still run :) if bot lose character it will automatically seek next random point and loop goes on. i hope this help you.
@AjayDina8 жыл бұрын
doesnt work on 4.12.5 Plz leave a tutorial for that
@ZARBOMBA9 жыл бұрын
Hi, great tutorial! I have just one problem, i cant get "OnSeePawn". They maybe changed the engine in some updates, so is there another option to do this? Thx for your help :)
@ZARBOMBA9 жыл бұрын
ZARBOMBA Nevermind, i've updated the engine, everything works again.
@settydark9 жыл бұрын
ZARBOMBA I can only see `Assign On See Pawn`
@FiveFistNinja8 жыл бұрын
I hate it how they update unreal so now there's no "get random point"
@Rac00nn79 жыл бұрын
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.
I can't find "Get Random Point" anywhere. Only "Get Random reachable point" etc on 4.10.2 - But that gets me an error and doesn't work because it says it needs to have something plugged into it. So far this has me stumped and I can't find a solution, the following link has gone around but I just don't understand what the solution is. answers.unrealengine.com/questions/61135/get-random-point-in-radius.html
@CaliberBeats9 жыл бұрын
+Patriot 03 Did you ever figure this out? The people in that thread make zero sense, I think they have brain damage.
@OGPatriot039 жыл бұрын
CaliberBeats I used "Get random point in navigable area" and plugged in a "Random Unit vector"
@CaliberBeats9 жыл бұрын
+Patriot 03 Thank you that works :) Did you have to plug anything else into the "Get random point in navigable area"? It allowed me to plug in random unit vector but he still won't move. At least I don't get errors now, that's progress. xD
@OGPatriot039 жыл бұрын
CaliberBeats No that's the only thing plugged into it, I'd double check everything else and make sure it's all good, and that the nav mesh is actually there (You can see it by pressing "P" in case you didn't know, that drove me crazy for a little while)
@1zin19 жыл бұрын
+Patriot 03 yeah i couldn't get him to move around when not looking at me, added the random unit vector" to stop getting compile errors though. Everything is plugged in properly. sure there was nothing else?
@mrmongbat9 жыл бұрын
Very helpful, thanks.
@RobStimpson8 жыл бұрын
Anyone even figure a way of making the ai go back to patroling after spotting u?
@Nightmist7 жыл бұрын
I cant find the onseepawn
@Kulture7119 жыл бұрын
Did you figure out how to set him to go back to roaming around if he loses sight of you?
@TotallyUnreal9 жыл бұрын
I havent taken a look back at this yet but i will do so later today and hopefully post a text based set of instructions in the about section!
@TotallyUnreal9 жыл бұрын
***** I havent had time to go over these videos or even make new ones recently, i have had exams coming up and coursework to be handed in. I will be making a lot more videos and coming back to some of these old ones over the summer if i can. Sorry about that
@tatrabojec9 жыл бұрын
I fixed it! You just put set In Range = false after either success and fail to get to destination after chasing you.. It worked for me at least!
@alexandersmith54647 жыл бұрын
i cant get this to chase a first person char
@UIC-Fitness928 жыл бұрын
cant find getrandompoint
@empire63628 жыл бұрын
I dont have Random Point in 4.12
@Glitch59708 жыл бұрын
me too
@sbbgnew8 жыл бұрын
It can be replaced by "Get random point in Naviable Radius," where the origin should be the zombie location. Don't forget to enlarge radius. Or it will appear to be constantly reach its destination.
@Vict0ry_Cs8 жыл бұрын
sbbgnew but then i needs a origin, so it doesnt work
@sbbgnew8 жыл бұрын
Vict0ryLSPDFR dude, calm down and read my comment again. I knew that some people might wonder about the origin...
@chocochipcookiealert7 жыл бұрын
I did this, I am not quite sure what I should set the radius as. First I dragged off radius to select navmesh or something, I am not sure that was correct so I then just set it to 4.75 which is the squared size of my navmesh cube. This is probably quite simple but I am noob.
@gblizard66868 жыл бұрын
onseepawn... I cant get onseepawn on my search help
@caboosenom3rson8 жыл бұрын
+GB Lizard Try going into the viewport and selecting the pawnsensing component and then in the details panel at the bottom you should be able to add an OnSeePawn event
@freddiebutterfield24249 жыл бұрын
my AI won't move and I have been through the video many times and still won't move please help me
@TotallyUnreal9 жыл бұрын
Freddie Butterfield Does your nav mesh bounds cover the entire walking distance? Can you see it built when you press P
@sarvman8 жыл бұрын
First off the AI character does nothing on his own, he does not move unless he see's me. Then when I break his view he just stands. I have watched this video over the last 2 days numerous times. I am in 4.11.2 I have not been able to follow ANY of the turtorials that I find on here to any success. I can get the AI to track me in the Nav Mesh, even found one tute that got the Ai to return to 'home'. BUT, if I put another AI in the game they all get confused. Whether I am using AI perception nodes or Pawn sensing they all come up short. I have changed the nodes around for hours attempting success to no avail. it works in your videos, why not my desktop?
@TotallyUnreal8 жыл бұрын
These videos were relevant and worked in older versions of the game (look at the date) i hope to be putting out a better, newer way of doing AI as soon as have the time to film such a tutorial
@nathang72448 жыл бұрын
That happened to me aswell! I can't find a reasonable tutorial either!
@TheChrois8 жыл бұрын
I had the same, then I increased his cone of vision (maybe make new pawn sensing). It certainly helped me. It looks like with decreased cone of vision they loose sight of your character quite easily.
@howielu18418 жыл бұрын
Please check the "INRange" vector, don't tick it.
@Finnzag9 жыл бұрын
Self reference doesn't connect to the ai move to.
@murkygames19 жыл бұрын
+Finn Davidson (finnzag) same here :(
@sr.61858 жыл бұрын
I can't connect self to pawn
@sr.61858 жыл бұрын
+Lyin'2Doge The Channel nvm
@redandcyanpower8 жыл бұрын
How did you fix it
@sr.61858 жыл бұрын
I forget. xD
@redandcyanpower8 жыл бұрын
Its fine I fixed it
@redandcyanpower8 жыл бұрын
It was cause of it being an actor and not a pawn I think
@alifaizan81299 жыл бұрын
I cant get On Seepawn :/
@braindeadplanet41009 жыл бұрын
Ali Faizan Do you know now hoW to get onseepawn?
@alifaizan81299 жыл бұрын
You need to add pawn sensing in the component area. Im out of town so I cant exactly tell you in detail... sorry :(
@MassiveKrull9 жыл бұрын
+Daniel E (4.9) In the components window, select PawnSensing, then go to the the details panel and add an event from there
@CreeperSlenderman6 жыл бұрын
who smells rich sweet food of the nothing sometimes?
@tylerin3d1349 жыл бұрын
I LOVE YOU
@wolf56599 жыл бұрын
Nothing happened here, the guy is just frozen in its place :(
@TotallyUnreal9 жыл бұрын
wolf5659 Scrub back through the video bit by bit, there will be something that you have missed as i do believe the video is comprehensive enough to make some working AI
@wolf56599 жыл бұрын
AdvancedGamers34 Thank you, you were correct
@TotallyUnreal9 жыл бұрын
***** Do you have a nav mesh bounds volume setup and covering the world correctly? You can view it using the letter P. i made this video a while ago and forget if i actually mentioned the bit about nav mesh bounds volumes but nonetheless, thats where i would start if he is stood there. I havent gone over this in the latest version of UE4 however i would assume that it does indeed still work
@GameXFuture9 жыл бұрын
+Totally Unreal I can't Find get Random point, I have context sensitive off, What's the problem?
@Nightmist7 жыл бұрын
like hello neighbor
@YoutubeAccountMan7 жыл бұрын
This is completely worthless. It barely works on a semi empty level. It doesnt work at all in any sort of real level. The patrol has massive pauses for no reason.