Weapon Switching In Unreal Engine

  Рет қаралды 3,089

The Game Dev Cave

The Game Dev Cave

Күн бұрын

With a game, you likely have weapons. and if you have weapons, you'll want to swap out those weapons most likely. So today, let's take a look at a simple system that'll allow you to cycle through a number of weapons on your character!
Get the project files on patreon: / 101630402
get the project files for KZbin members: • Post
Join the discord for any help you need! : / discord
Join this channel to get access to perks:
/ @thegamedevcave
support the channel and development over on patreon : / thegamingcaves
Get personalized Coaching : www.fiverr.com...

Пікірлер: 16
@Weeeboss
@Weeeboss 7 ай бұрын
Thank you for another informative video! Just a quick tip, as I've seen a lot of people use the "Pause Anims" when adjusting weapons/assets over their character: You can just press Ctrl+R to disable Realtime rendering, which also disables animations, adjust the weapon/asset to your liking and then press Ctrl+R again to re-enable Realtime rendering.
@thegamedevcave
@thegamedevcave 7 ай бұрын
that's much faster! thanks i didn't know about that shortcut!
@askarYT
@askarYT 12 күн бұрын
Thaaaaaaaaaaaaank u verrry much !!! I've been looking for this tutorial for a while! You helped me a lot, thank you! ❤
@bluebottlevt
@bluebottlevt 9 күн бұрын
Amazing , very helpful. thank you
@Leo-su3me
@Leo-su3me 26 күн бұрын
Nice video bro!
@foxxdgd443
@foxxdgd443 4 ай бұрын
this dosent work for me.
@kmtsvetanov
@kmtsvetanov 5 ай бұрын
If I have in my BP_Weapon a "damage" variable, how can I get it ?
@kmtsvetanov
@kmtsvetanov 5 ай бұрын
Found it. BP_Weapon has a variable "Damage" 10 that is editable and expose on spawn. This is the default value for all weapons. I have BP_Axe with Damage set to 20. To get the damage when a monster is hit I use: - Get Player Character -> Cast to BP_Player -> Get Weapon -> Get Child Actor -> Cast to BP_Weapon -> Get Damage
@carlosrivadulla8903
@carlosrivadulla8903 7 ай бұрын
would this system be better if the weapon class is hold inside a data asset ?
@thegamedevcave
@thegamedevcave 7 ай бұрын
it really depends on the context, there is no blanket statement " better" about this. if you have a simple weapon cycle system like this example (and my game) there is no need to get data assets involved. if your weapon/item system uses data assets ( like in the inventory series that i'm uploading), then you could take the weapon class out of a data asset yeah.
@Thatsunrealdude
@Thatsunrealdude 7 ай бұрын
Nice video!
@thegamedevcave
@thegamedevcave 7 ай бұрын
Thanks!
@kmtsvetanov
@kmtsvetanov 5 ай бұрын
If I wish to switch to a Bow that is in the other hard how will I do it ?
@kmtsvetanov
@kmtsvetanov 5 ай бұрын
Found it. We use Attach Component To Component. For Target pin we use "Weapon". For Parent pin - Our Skeletal Mesh Component And for Socket Name we say "hand_r" Remember to switch the socket name to "hand_l" When you select a sword
@thegamedevcave
@thegamedevcave 5 ай бұрын
probably best use a whole other system altogether to be honest. but you could add a socket to both hands, and check when you switch weapons if it is the bow and move the mesh to that other hand... but if youre still looking into a system to make for weapon switching, you're best off just not using this one for your use.
@yurapodchasov1326
@yurapodchasov1326 Ай бұрын
sombody now how diactivete hidden weapon not just hidde
Unreal Engine : Decals
13:58
The Game Dev Cave
Рет қаралды 1 М.
Real-Time Path Tracing in Unreal Engine 5 | Unreal Fest 2024
36:26
Unreal Engine
Рет қаралды 110 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 11 МЛН
Из какого города смотришь? 😃
00:34
МЯТНАЯ ФАНТА
Рет қаралды 1,6 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 10 МЛН
Players vs Pitch 🤯
00:26
LE FOOT EN VIDÉO
Рет қаралды 124 МЛН
Unreal Engine 4 Tutorial - Weapon Switching
20:23
Ryan Laley
Рет қаралды 56 М.
Using Data Asset for Weapons
38:24
Patsanoob
Рет қаралды 6 М.
When Your Game Is Bad But Your Optimisation Is Genius
8:52
Vercidium
Рет қаралды 1,5 МЛН
Unreal Engine - Modular Typewriter text
16:30
Qworco - Unreal Engine
Рет қаралды 604
The REAL Reason Unreal Engine VFX Looks FAKE
6:58
Joshua M Kerr
Рет қаралды 501 М.
How To Set Up A Two Weapon System - Unreal Engine 5 Tutorial
22:27
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 14 М.
3D AI Model Generation is Getting GOOD - UE5.4 Unreal Engine
12:25
How To Blend Animations For Different Weapons - Unreal Engine 5 Tutorial
14:00
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 13 М.
Epic's Unreal Optimization Disaster | Why Nanite Tanks Performance!
13:07
Threat Interactive
Рет қаралды 234 М.
How To Set Up Switching Between Weapons - Unreal Engine 5 Tutorial
21:18
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 10 М.
Ice Cream or Surprise Trip Around the World?
00:31
Hungry FAM
Рет қаралды 11 МЛН