Unreal Engine 4 - AI Look at & Circle Player (Strafing)

  Рет қаралды 20,637

Beardgames

Beardgames

Күн бұрын

Пікірлер: 64
@Beardgames
@Beardgames 3 жыл бұрын
For when you finish the video, just a heads up... the 'cooldown' value in the behaviour tree and the Maths Multiply Right/Left & Forward nodes can be changed to fit your program! Mine are not exact or the "perfect" values, they are just rough values I used as I thought it looked good enough for my tutorial :D Good luck friends and thanks for watching!
@M4v3RicK99
@M4v3RicK99 3 жыл бұрын
For anyone having issues with strafing not working, I set the 'observer aborts' on the BB Condition to 'None' for both and it worked.
@Beardgames
@Beardgames 3 жыл бұрын
Thanks for sharing dude :)
@fatti.casuali
@fatti.casuali 3 жыл бұрын
Still not working :(
@natecoet3291
@natecoet3291 3 жыл бұрын
Thanks brilliant worked for me :)
@frozec08
@frozec08 3 жыл бұрын
Worked for me Tq
@hosimarde
@hosimarde 3 жыл бұрын
for anyone wondering, you should change values of the "in range" BB condition
@ivangeorgiev2684
@ivangeorgiev2684 2 жыл бұрын
For anyone having problems with strafing, change (Observer aborts/Detail/Flow Control) to “none” in (InRange/IsInRange) in both sequences in NPC_Behavior_Tree.
@rockers995
@rockers995 6 ай бұрын
If you're trying this in unreal 4.26 or later, you can also use a "Select" node to randomly choose between the positive and negative (move right vs move left) vector values. Not sure if this changes the behavior by much, but it has been working alright for me (although the debug line is a bit wonky)
@ivangeorgiev2684
@ivangeorgiev2684 2 жыл бұрын
For anyone having problems with drawing weapon animations. If you retargeted your character and it is a new one in your Anim Graph/Layered blend per bone nodes you have to change your bones correspondingly from your ThirdPersonCharacter to your retargeted Character’a bones.
@statisticalanomalies
@statisticalanomalies 2 жыл бұрын
For those that followed this and it's not working you need to go two videos ahead where he talks about attacking. Look at the Behavior Tree for the Can See Player sequence. You will notice a slightly different setup than in this video. If you use that setup everything works fine...
@tsehoyin2
@tsehoyin2 2 жыл бұрын
This tutorial no longer works in Unreal Engine version 4.26 and 4.27. After the update it is better to look for other tutorials for strafing.
@aprendiendoue5461
@aprendiendoue5461 2 жыл бұрын
@@tsehoyin2 does it work for 4.27.2?
@tsehoyin2
@tsehoyin2 2 жыл бұрын
​@@aprendiendoue5461 Sorry for my typo. It does not work for 4.27 anymore. However, I still recommend other tutorials in this series ,(if they work) because they are quicker than slow tutorials.
@dorondavid4698
@dorondavid4698 7 ай бұрын
An easier way would be to consider the player to be the center of a circle. The distance from the enemy to the player is the radius of the circle. To move around the circle, add whatever random number to the rotation of the player, which represents the new angle from the center. Then, get the position of the player with the new rotation, add the distance they were at (the radius) and voila...new position on a circle!
@vexan_twitch
@vexan_twitch 2 жыл бұрын
my AI doesn't follow in simulate mode but in normal game mode
@reinspieler
@reinspieler 3 жыл бұрын
Hey very cool that you are doing this just wants to thanks
@Beardgames
@Beardgames 3 жыл бұрын
No problem at all rein :) thanks for watching and supporting me!!
@TheGhos1Face
@TheGhos1Face 3 жыл бұрын
Amazing as always beard keep it upp!
@Vode1234
@Vode1234 Жыл бұрын
I think I'm going to have this spawn a spline on those points so it can make a complete circle around without loose its arch.
@Kinos141
@Kinos141 2 жыл бұрын
You could also use root motioned animations and call them on a randomizer If you have them.
@MartKart8
@MartKart8 Жыл бұрын
When creating a RotateToPlayer the Ai is stuck and no longer turns back around?
@MayurKamatDoesStuff
@MayurKamatDoesStuff 2 жыл бұрын
The one thing i dont like is the movement is discrete and not continuois any idea how to continuosly move it along a circle without breaking at each of those points?
@sayayuuki127
@sayayuuki127 2 жыл бұрын
I added a lot of enemies, but I have some problems. The enemies will bump and push each other when they try to strafe in the opposite direction, how would I fix that?
@MythicCosmos_Uno
@MythicCosmos_Uno 3 жыл бұрын
I'm having trouble with the rotating to my player. My ai looks at the player when running towards him then trails off along random trails not rotating towards the player anymore. The lines being drawn go randomly anywhere. Can't find where I went wrong.
@Kyrilienx
@Kyrilienx 2 жыл бұрын
Idk if you figured it out as well but in the AI blueprint over by pawn select "use controller rotation yaw" and it should work
@lorillih4295
@lorillih4295 2 жыл бұрын
@@Kyrilienx Thanks this helped me
@waitwhat513
@waitwhat513 2 жыл бұрын
@@Kyrilienx Love you bro
@blenderzone5446
@blenderzone5446 3 жыл бұрын
Great stuff!!!
@mauriciosilva1631
@mauriciosilva1631 3 жыл бұрын
Has anyone else had problems trying to do in version 4.26? when I followed this tutorial for version 4.25 everything worked, but when I tried for version 4.26 it just doesn't surround the player. In the behavior tree it is set to setmovespeed and does not advance to the next behavior
@jeremyberger7480
@jeremyberger7480 3 жыл бұрын
I'm getting the same thing, also running 4.26
@mauriciosilva1631
@mauriciosilva1631 3 жыл бұрын
@@jeremyberger7480 I researched about and there were changes in the artificial intelligence issue of 4.25/4.26 and in fact he hears changes I've already told pro beard but he said that at the moment he can't fix this problem because he's too busy with his asset in the unreal market
@jeremyberger7480
@jeremyberger7480 3 жыл бұрын
@@mauriciosilva1631 thanks for the reply, and in case anyone else is reads this, it seems to be skipping some tasks, and often hangs on the "find location" task where it picks the world location to strafe to. It picks the location just fine because the debug lines keep being drawn, but it seems the whole behavior tree freezes without progressing past the "find location" task
@mauriciosilva1631
@mauriciosilva1631 3 жыл бұрын
@@jeremyberger7480 it loops and gets stuck there.
@akiho2843
@akiho2843 2 жыл бұрын
In 4.27 still not working strafe movement
@cotrushoi1080
@cotrushoi1080 3 жыл бұрын
hi, great video but every time AI abborts when in range it just tries to find player location, it doesnt go to strafe mode
@Beardgames
@Beardgames 3 жыл бұрын
Thanks amigo :) Hmm it's hard to know what's wrong without knowing exactly what is there but make sure you've got your "IsInRange" on both of your sequences!
@Beardgames
@Beardgames 3 жыл бұрын
Thanks amigo :) Hmm it's hard to know what's wrong without knowing exactly what is there but make sure you've got your "IsInRange" on both of your sequences!
@chrischaos6669
@chrischaos6669 3 жыл бұрын
I'm having an issue where the npc always faces you no matter even running around an obstacles when chasing player.
@chrischaos6669
@chrischaos6669 3 жыл бұрын
npc rotates to player and stays that way when chasing player and after losing line of sight.
@chrischaos6669
@chrischaos6669 3 жыл бұрын
Nevermind I figured it out by duplicating the Rotate To Player task and from the controller using the Clear focus node lol. then adding the task to the begining in the false can see player part you disconnected lol
@realdlps
@realdlps 3 жыл бұрын
Im seriously having a hard time watching every video but still awesome videos
@Beardgames
@Beardgames 3 жыл бұрын
Haha honestly DLP it's no stress at all. I'm just extremely grateful for your support it really does mean so much so thank you dude!!
@rizchaud
@rizchaud 3 жыл бұрын
i cant make my enemy circle player and attack ... its like the selector stop the action...
@mauriciosilva1631
@mauriciosilva1631 3 жыл бұрын
4.26 or 4.25 version?
@tjjames8414
@tjjames8414 2 жыл бұрын
Hi BeardGames. I am a young game developer and your videos are awesome but this one just doesn’t work for me. I am using UE5 and the float * float node does not exist in UE5 and multiply node just wants a X Y And Z value. I tried making float variables with the numbers that you said to put in but no luck there. PLZ help. ( I found the video that explains how to change the math nodes. This is edited in)
@gregoryeaton5121
@gregoryeaton5121 3 жыл бұрын
this is like pathfinding
@aweramu7107
@aweramu7107 3 жыл бұрын
Lets cinematic tutorial
@garrytalaroc
@garrytalaroc 2 жыл бұрын
i followed everything exactly I could, and my AI is still dumb, i don't know what I did wrong, and im crying.
@MRX-cw4qf
@MRX-cw4qf 3 жыл бұрын
Can you do this without Tree of behavior
@Beardgames
@Beardgames 3 жыл бұрын
I think you can but the behaviour tree makes it a lot simpler than normal blueprinting as far as I can see :)
@MRX-cw4qf
@MRX-cw4qf 3 жыл бұрын
I know that, but there are people who start their project without the behavior tree, and I don’t think they want to add it so can you make a lesson without the behavior tree please
@Beardgames
@Beardgames 3 жыл бұрын
@@MRX-cw4qf I could take a look into that in the future sure thing :)
@MRX-cw4qf
@MRX-cw4qf 3 жыл бұрын
THANKS
@AmishTP
@AmishTP 3 жыл бұрын
Can you share your AI Strafing Project😅 I am stuck, i even checked your debugging tutorial, but no help, the AI doesnt keep any space doesnt move in circle! please help me out!
@Beardgames
@Beardgames 3 жыл бұрын
Sorry amigo I don't upload my projects to KZbin anymore! All I can suggest is to go over the video again step by step. AI really does suck haha I wish there was more I could do but I can't think of anything! Could always check out my Marketplace Asset if you want all of the good stuck with AI and combat :) I'll leave a link, let me know how you get on Amish! www.unrealengine.com/marketplace/en-US/product/flexible-combat-system/questions?sessionInvalidated=true
@vegitoblue2187
@vegitoblue2187 3 жыл бұрын
set focus is not working for me for some reason
@Beardgames
@Beardgames 3 жыл бұрын
Hmm that's strange! Hard to know what's wrong but make sure you're getting the Player Reference. It might be failing for some reason
@vegitoblue2187
@vegitoblue2187 3 жыл бұрын
@@Beardgames I checked the behavior tree at runtime and the player reference is there. I have put my behavior tree on discord. edit: nevermind I am an idiot. I disabled tick on the ai controller
@MartKart8
@MartKart8 2 жыл бұрын
Does this tutorial work in version 4.27.2, my hard drive would take up too much space to install Unreal engine 5?
@akiho2843
@akiho2843 2 жыл бұрын
In 4.27 Not working strafe movement
Unreal Engine 4 - Character & AI Strafe Movement
6:01
Beardgames
Рет қаралды 19 М.
Unreal Engine 4 - Dealing & Taking Damage
12:33
Beardgames
Рет қаралды 20 М.
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 85 МЛН
1, 2, 3, 4, 5, 6, 7, 8, 9 🙈⚽️
00:46
Celine Dept
Рет қаралды 106 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 28 МЛН
Blender Cloth SImulation 40K Faces ⚡
0:14
Abdumalik arts
Рет қаралды 5 М.
How to Make the NPC's Head Look At the Player in Unreal Engine 5
4:54
Easily Make Ai Animals That Chase And Flee In Unreal Engine
16:20
Elusive Panda
Рет қаралды 20 М.
Learning Unreal Engine in One Month to make a Game!
15:25
Will Hess
Рет қаралды 98 М.
Navigation Query Filters (Separating AI movement) - UE4 With Casey
13:01
Unreal Engine 4 - AI Basics & Patrolling (Easy Method)
16:00
Beardgames
Рет қаралды 40 М.
Unreal Engine 4 - Save Your Level & Checkpoints
8:50
Beardgames
Рет қаралды 15 М.
2D Characters in 3D Worlds (and how I improved them)
17:45
JayTheDevGuy
Рет қаралды 76 М.
3D AI Model Generation is Getting GOOD - UE5.4 Unreal Engine
12:25
UE4 Turret Tutorial Part 1 - Aim at Target Regardless of Position
20:22
UnlimitedCatWorks
Рет қаралды 19 М.
風船をキャッチしろ!🎈 Balloon catch Challenges
00:57
はじめしゃちょー(hajime)
Рет қаралды 85 МЛН