Тёмный

Unreal Engine 4 - Enemy Targeting System & Switch Attack Stance 

Beardgames
Подписаться 27 тыс.
Просмотров 37 тыс.
50% 1

★ Come join the Team Beard Discord: / discord ★
⚜️Check out my Marketplace Asset ⚜️
🗡️ Mele 🗡️ www.unrealengine.com/marketpl...
🏹 Ranged - www.unrealengine.com/marketpl...
✨ Magic - www.unrealengine.com/marketpl...
⚔️ Package ⚔️ - www.unrealengine.com/marketpl...
🔪 Basic - www.unrealengine.com/marketpl...
Lock onto your target and begin strafe/change attack stance. Unreal Engine 5 Compatible!
★ Ways to Support The Channel ★
Patreon: www.patreon.com/JonBeardsell?...
Buy Me A Coffee: www.buymeacoffee.com/JonBeard...
All support will go towards helping me produce RU-vid content and tutorials full time.
★ Tutorial Links★
AI Tutorial Part 1: • Unreal Engine 4 - AI B...
Strafe Movement: • Unreal Engine 4 - Char...
★ Blueprint Nodes★
blueprintue.com/blueprint/0v7...
★ Basics ★ ✓
★ Materials ★ ✓
★ Level Design & Collision ★ ✓
★ Particle Systems ★ ✓
★ Lighting ★ ✓
★ Opening Doors Via BP ★ ✓
★ Bombs, Consumables & Material Blueprints ★ ✓
★ Launch Pads, Moving Platforms & Trap Blueprints ★ ✓
★ Health & Mana Bar ★ ✓
★ Consumables ★ ✓
★ Destructible meshes & Spawning Blueprints ★ ✓
★ Creating a Low Poly Character Via Blender ★ ✓
★ Rigging & Animating A Character Via Blender ★ ✓
★ Character BlendSpace And Animation Blueprint ★ ✓
★ Character Selection Screen ★ ✓
★ Looting Chests ★ ✓
★ Picking Up Items & Inventory System ★ ✓
★ Picking Up & Drawing Your Weapon ★ ✓
★ Character Attack ★✓
★ AI Combat★
★ NPC chat ★
★ Landscape ★
★ Creating A Boss ★
★ Dying & Respawning ★
★ Checkpoints ★
★ Save/Load Game ★
★ Sound Effects★
★ Menu Screens & UI ★
★ Cutscenes ★
★ Packaging game ★
Thanks For Watching! Please Like & Subscribe if this tutorial series is helping you, it really helps me in producing content!!

Опубликовано:

 

1 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 98   
@Beardgames
@Beardgames 3 года назад
Want to upgrade this system so you can swap between targets on the left and right? Check out my update for this :) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-owZz-ffUzsc.html
@Pontos420
@Pontos420 3 года назад
Just... nice!
@mattice9083
@mattice9083 2 года назад
this is very well done. what i am thinking is how do i do something where when i push attack, the character "locks on" and attacks the cloest/ most center viewed enemy
@boostedplayer503
@boostedplayer503 3 года назад
You made it soo easy. Everyone else was making this a big mess. Thanks alot.
@Beardgames
@Beardgames 3 года назад
Anytime brother :)
@realdlps
@realdlps 3 года назад
Oh boy the thirdpersoncharacter blueprint has a lot of stuff now, Awesome vid :)
@Beardgames
@Beardgames 3 года назад
Thanks as always amigo :D
@jmarte6089
@jmarte6089 9 месяцев назад
You are awesome. Keep up the great work!
@garrytalaroc
@garrytalaroc Год назад
Thanks man, you're the best.
@BeMolga
@BeMolga 3 года назад
This is what iv been looking for thx so much
@Beardgames
@Beardgames 3 года назад
No problem at all! Thanks for supporting my channel :)
@Dream-Big-Studio
@Dream-Big-Studio 3 года назад
Thank you so much Sir. i am a big fan of yours.
@user-hj7yb8yt6w
@user-hj7yb8yt6w 2 года назад
Smartest and kindest youtuber I'd ever seen, bro!😀
@Beardgames
@Beardgames 2 года назад
Much love amigo that's very kind of you to say. Keep smashing it for me!
@MartKart8
@MartKart8 Год назад
I had to redo this again, and now the lock on works.
@nierautomata9654
@nierautomata9654 3 года назад
Well explained Teacher ! another lesson learned :) Thank you!
@Beardgames
@Beardgames 3 года назад
Anytime amigo :D
@codyvandal2860
@codyvandal2860 3 года назад
Nice job man keep them coming
@Beardgames
@Beardgames 3 года назад
Thanks man!
@aibon7070
@aibon7070 3 года назад
Very nice Tutorial! Good job
@Beardgames
@Beardgames 3 года назад
Thanks so much ibon!! :)
@jordanabbatiello
@jordanabbatiello Год назад
great tutorial, also subscribed right after your suggestion.
@Beardgames
@Beardgames Год назад
Thanks for supporting the channel Jordan it's much appreciated :)
@TheGhos1Face
@TheGhos1Face 3 года назад
Ohhh nice one my g!!!
@Beardgames
@Beardgames 3 года назад
Thanks bro :D
@DevilFruitJourney
@DevilFruitJourney 5 месяцев назад
I would subnif you could explain how to swap between mutltiple enemies by using the mouse wheel. I think many other people would too :)
@afiqzak8345
@afiqzak8345 3 года назад
thanks, your tutorial really helpful :)
@Beardgames
@Beardgames 3 года назад
Anytime afiq :)
@user-ed3zm7ck3i
@user-ed3zm7ck3i 2 года назад
Я сильно благодарен тебе за качественные видео, двигайся в том же духе(I am very grateful to you for high-quality videos, move in the same spirit)
@tgykurtulus
@tgykurtulus 2 года назад
Hello, thank you! Do you have an idea how i can implement to this feature to a side scroller? This logic turns the character the wrong side when it is right of the target .
@DarkKiller-so3jp
@DarkKiller-so3jp Год назад
Great tutorial! I got a question though, how would I make the targeting system dynamic in which the camera will automatically adjust it's self so both the player and the target is always visible on screen? Currently is there is a group of enemies or I'm too close to the target, it can be very hard to see the target clearly so I would really want the camera to adjust itself by moving left or right so both the player and the target are always seen clearly. Any ideas on how I can achieve this?
@blenderzone5446
@blenderzone5446 3 года назад
like it! thanks for sharing!
@Beardgames
@Beardgames 3 года назад
Thanks Metal :)
@blenderzone5446
@blenderzone5446 3 года назад
my pleasure!
@MZONE3D
@MZONE3D 3 года назад
Nice one mate. Just what I was after. Cheers
@Beardgames
@Beardgames 3 года назад
No problem amigo :D Thanks for supporting the channel!
@MZONE3D
@MZONE3D 3 года назад
@@Beardgames alright mate, that worked like a charm... it would be cool though to add some kind of marker above the head of your target? how would ya go about that? add a billboard and make it visible on locked?
@Beardgames
@Beardgames 3 года назад
@@MZONE3D glad to hear it pal! I'm working on a tutorial now where we'll add a marker don't worry I got you :D it will only be available for early access until I release another video after that though so you'll have to wait a couple days for it :)
@arankasih1162
@arankasih1162 2 года назад
HI beard games! u just earned yourself a subscribe! its a good tutorial btw, easy to do and not complicated at all. And i actually have an ide that i can't do myself, if you don't mind? so basically, it would be good if our player have a max distance of targeting, so when we go too far from target, our targeting is off and we can control our mouse again. Thank you so much! Much love from Indonesia
@Beardgames
@Beardgames 2 года назад
Hey Aran thanks for the sub brother I really appreciate you supporting the channel :) So what you can do is add a condition onto your tick which say "if Distance between self & locked on target greather than ... clear lock on". Just use the same functionality and the "Get Distance To" node. Good luck!
@gil6970
@gil6970 Год назад
How can I make it so I can move the camera left and right when locked on? The camera is always locked in. I’ll like to keep the character strafing and facing the enemy. But able to move the camera around. Can you please help
@Legend64Project
@Legend64Project 2 года назад
Thank you for the tutorial it was very helpful. Do you have a part two for how the camera will lock off depending on the distance away from the target?
@Beardgames
@Beardgames 2 года назад
Unfortunately I dont however you can just use the "get distance to" node with the player and the AI, when its greater than a certain distance call the target event again to untarget :)
@Legend64Project
@Legend64Project 2 года назад
@@Beardgames Thanks Beard! Do you know how to set up a switch to a new target? I keep locking on to the same one...
@Beardgames
@Beardgames 2 года назад
@@Legend64Project check out my badass features video, we go over switching between the left and right enemies :)
@gabba64884
@gabba64884 3 года назад
Hello! Great tutorial, many thanks! Can you explain, why the radius (the distance between my Character and its Target) is always increaing, if I strafe? Can I fix that somehow - I want always keep this distance unless I press Forward/Backward while strafing
@Beardgames
@Beardgames 3 года назад
No problem at all 😊 so I've actually only tested this with AI so I haven't noticed the movement change, but I presume when locking onto a still target when you move left and right your character gets further away over time? Hmm if this is the problem the only thing I can think of is on your movement input for moving left/right (the movement input node). Add a condition if the target is locked, then if the target is locked add a very small forwards input on top of the left/right movement. I use this technique to fix a bug in one of my upcoming videos if you haven't figured it out by then that video should be able to help :)
@ION1234ASDASD
@ION1234ASDASD 2 года назад
can you make the player return to normal state after you release tab with a simple node? my char doesnt move normally, he stays in a strafe state, sory for my bad english, (i didnt do the animation blueprint part)
@TommyS04
@TommyS04 2 года назад
I still so those red and green lines you have at 6:00 , how do you get rid of those?
@Lumhax
@Lumhax 2 года назад
Hi ! Amazing one, do you know how to draw icons on the ennemy ?
@DevilFruitJourney
@DevilFruitJourney 5 месяцев назад
You need to creat a widget. Then assign this widget to your character/enemy. Then put some Logic to make this icon visible
@bibilicious
@bibilicious 3 года назад
How would you go around making a multi target system lock on? I made a very similar set up (except using line traces) in C++ and it mostly works, with an additional Q/E to toggle through the targets. But there is some edge cases which actually makes it fairly difficult to code thoroughly, like handling when one of the enemy dies, choosing different target (based on distance is easy, but what about left to right?). Any pointers?
@Beardgames
@Beardgames 3 года назад
So you'd just use the exact same method but for the Q/E keys make sure the target locked is 'not equal' to the first target :)
@S1yGus
@S1yGus 3 года назад
Спасибо из России, мужик! Урок - годнота!
@troyhayder6986
@troyhayder6986 2 года назад
Posted my lock on on my channel... You fing genius... Unlike batman my character always goes in the direction I'm holding... Cause I'm not shit...
@davida4641
@davida4641 2 года назад
Hi, when the A.I character approaches and gets close, the camera pivots to a a bit of a birds eye view. Is there any way of preventing this when the character gets close?
@christofferplatou2828
@christofferplatou2828 Год назад
Still wanting to know this too
@Pontos420
@Pontos420 3 года назад
How can I make the shpere spawned from the sphere trace for objects invisible? As even if I spawn it only for "one Frame" I can still see a red line poping up for a moment.
@dodossssssssss
@dodossssssssss 2 года назад
set draw debug type to none
@jankystreams3337
@jankystreams3337 2 года назад
For some reason my character is not strafing whenever he locks onto the target. I am almost 100% sure I connected everything correctly, do you know why this might be happening? Also, regardless if I get this fixed, this is a GREAT video, it was really easy to follow and it helped me out a ton. EDIT: I fixed it. I made a dumb easy to fix mistake.
@stinkbruh8178
@stinkbruh8178 Год назад
how did you fix it brotherr
@TommyS04
@TommyS04 2 года назад
I cant attack anymore with this system, any fix?
@armeddreams9141
@armeddreams9141 3 года назад
Whenever I lock onto an enemy or other physicsActor, it kinda locks onto their like, feet. So if I get within touching distance, my camera kinda looks 80 degrees down. Is there a way to make it eye-level, or atleast control the up-down angle of the view?
@Beardgames
@Beardgames 3 года назад
10:15 my friend :)
@ondria6334
@ondria6334 2 года назад
Hi I am trying to follow your tutorial but It seems like you didn't mention the ready to attack or weaponready variables etc? Please could you let me know which tutorial you mentioned to create them in. Thanks 1:21
@TommyS04
@TommyS04 2 года назад
Not relevant to this tutorial
@socialrecluse5227
@socialrecluse5227 3 года назад
When Locked onto a target and it gets destroyed I get an error. how would I implement a way to turn off the lock on when actor is destroyed?
@socialrecluse5227
@socialrecluse5227 3 года назад
Found solution in your other videos will leave this comment up incase others find same problem :) ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-owZz-ffUzsc.html&ab_channel=Beardgames (13:30)
@Grimsikk
@Grimsikk 2 года назад
Is there a more optimized way to handle the camera control? I was under the impression that putting things on Event Tick was bad practice. I'm looking to make my game as optimized as possible.
@aleca8910
@aleca8910 2 года назад
It's not a bad practice but it's recommended to use it only if necessary. In this case there's no other options. If you don't do the trace every frame your camera will start stuttering and you don't want that. Lock on target is something you must do every frame.
@Zero_hk
@Zero_hk 3 года назад
How could I stop the target after killing the targeted enemy?
@Beardgames
@Beardgames 3 года назад
From your AI death blueprint simply clear your locked on target :)
@josecervilla5362
@josecervilla5362 Год назад
Sometimes the animation shakes, I see that it happens to you too 11:44 Why is this? I'm going crazy, trying to fix it, and I see that in your flex combat project it doesn't happen, is a bug of the animation?
@kajoxu
@kajoxu Год назад
Did you find out how to solve this? I have big problem with it, and i need help.
@Blonder_Studio
@Blonder_Studio 2 года назад
how can i make it so that if i move to either left or right while being locked on my character would be on the side of my screen?
@Blonder_Studio
@Blonder_Studio 2 года назад
nvm figured it out
@ggplayer1170
@ggplayer1170 3 года назад
Is there a way to make the character move independently from the camera?
@ggplayer1170
@ggplayer1170 3 года назад
Just had to delete "Use control rotation yaw" to get what I want :)
@3rosione
@3rosione 3 года назад
when i press tab my character doesn't do the strafing blendspace animations :(
@ImpeGa123
@ImpeGa123 2 года назад
Remember to set controller rotation yaw to true ( I forgot that )
@sonapaiaca6902
@sonapaiaca6902 3 года назад
can you send me the link for the nodes? The link doesn't work
@Beardgames
@Beardgames 3 года назад
Hmm it seems that the link broke with the new update of the website. Will have to look into this a bit later for you Sona sorry! You can just re-produce the nodes if you want :)
@sonapaiaca6902
@sonapaiaca6902 3 года назад
@@Beardgames I have found the nodes, thx anyway and great work with the tutorial ^^
@FerUrdaneta1
@FerUrdaneta1 3 года назад
hey bro! the blueprint nodes are broken :c
@Beardgames
@Beardgames 3 года назад
Hey Fernando sorry to hear you're having issues man! What do you mean by the nodes are broken?
@FerUrdaneta1
@FerUrdaneta1 3 года назад
@@Beardgames with the link
@thentsc
@thentsc 2 года назад
@@Beardgames Yeah your link to blueprintue is dead
@Beardgames
@Beardgames 2 года назад
@@thentsc oh damn sorry guys they changed the website. Will try get on this ASAP :)
@skippyzk
@skippyzk 3 года назад
woah, copying blueprints from websites is awesome!
@Beardgames
@Beardgames 3 года назад
Hehe speeds things up a bit 😁 I try avoid it to make sure everyone learns the process but sometimes it speeds things up so much haha
@skippyzk
@skippyzk 3 года назад
@@Beardgames Well, you explained everything too, and it's just the math part. Thanks for the maths! I have short enemies and I keep attacking over their head, but camera is pointing down towards the enemy. So I need to use an anim offset?
@mmk6921
@mmk6921 2 года назад
1:56 Hi I Just made the TargetLocked variable, but when i tried to connect it to Pawn Owner on the Event Graph, the variable is not showing. :(
@gigs510muzik
@gigs510muzik 2 года назад
Same
@brunosemerek
@brunosemerek 2 года назад
Be sure that You have compiled Your player character blueprint. Your targetLocked variable should be created there. Then go to event graph of your animation blueprint and from cast to go get targetLocked. then promote it to variable. You will be using this new variable as targetLocked for animation blueprint.
@ty_teynium
@ty_teynium 3 года назад
Be sure to collapse all those nodes at 10:03 into a function for performance sake.
@Beardgames
@Beardgames 3 года назад
Nice shout, I've been trying to avoid functions on my tutorials to keep things simple but a function here would be great
@emptybruh
@emptybruh Год назад
can you do one for top down view
Далее
Unreal Engine 4 - Blocking Attacks (AI & Player)
17:31
Ne jamais regarder une fille à la plage 😂
00:10
Просмотров 766 тыс.
Unreal Engine Action jRPG Template: Trailer
5:35
Просмотров 25 тыс.
HOW TO MAKE AIM ASSIST UE4 | request
19:33
Просмотров 12 тыс.
How To Create Lock On Target Mechanic In Unreal
7:17
Просмотров 1,9 тыс.
Unreal Engine - Flexible Combat System Features
34:49
UE4 - How to setup Dynamic Targeting System
7:40
Просмотров 25 тыс.
Ne jamais regarder une fille à la plage 😂
00:10
Просмотров 766 тыс.