No video

How To Set Up A Replicated Weapons System For Multiplayer - Unreal Engine 5 Tutorial

  Рет қаралды 7,706

Pitchfork Academy (MizzoFrizzo & Co.)

Pitchfork Academy (MizzoFrizzo & Co.)

5 ай бұрын

In this tutorial I'll show you how to set up a replicated two-weapon system with simulated physics pickups, weapon switching and holstering, basic firing logic, and replicated weapon skins.
Patreon: / mizzofrizzo
Subreddit: / mizzofrizzo_tutorials
Facebook: / 884349679908510

Пікірлер: 106
@ResetUE
@ResetUE 5 ай бұрын
hey there mizzo! i just finished this tutorial today and i gotta say this is great! i loved it and keep going man its these things that will make you rocket up to the sky the more you put work into this channel. u will be a life saver for lots of new devs!
@unholynimble5723
@unholynimble5723 3 ай бұрын
I got so excited about the mouse wheel weapon switch, been wanting to figure that out for ages. Guess I'll just have to give you more watch time.. not like you don't deserve it! Nice job man, thanks :D
@RonanOrdonez
@RonanOrdonez Ай бұрын
Love your content! This video was a lifesaver! I really like this system, but could you do a short follow up on this explaining how to have a primary and secondary weapon equipped by default?
@Hunt4Glory
@Hunt4Glory Ай бұрын
I second this. PLEASE LORD MIZZO
@KonsolenGames
@KonsolenGames 2 ай бұрын
Appreciate you sharing your knowledge. Thank you!
@Turzaluk
@Turzaluk 3 ай бұрын
Hey, just want to comment that you got "se up" in your title and not"Setup". Awesome video by the way, super useful and easy to follow!
@swagmeiser
@swagmeiser 2 ай бұрын
This man is a godsent to his people
@SynysterRipper
@SynysterRipper Ай бұрын
This was so helpful, thank you a million times over!!
@kit_ma.
@kit_ma. Ай бұрын
This video is simply the best I've ever seen! I don't understand why there are so few likes(
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
I thought it would get more attention too... Maybe I didn't use the right keywords. 😔
@kit_ma.
@kit_ma. Ай бұрын
@@PitchforkAcademy The main thing is don't give up! Perhaps create some pages on other social networks to promote yourself, and if you’re lucky, you’ll be noticed on one of them. People need to know that your channel exists😊
@PitchforkAcademy
@PitchforkAcademy Ай бұрын
@kit_ma. Haha actually my channel is crushing it. I'm currently getting 1k new subs every 28 days, and the growth is accelerating. I'm all good, I was just agreeing that it's weird this particular video hasn't gotten more attention. 😉
@sisqobmx
@sisqobmx 2 ай бұрын
hey, another question. I have followed exactly as you but at 1 hour 35 min, where we set up the weapon switch, it doesnt replicate properly for me somewhy. Can using an actor instead of component cause issues related to this?
@betraid
@betraid 5 ай бұрын
0:03 Ahah what's happening with second mannequin?:D his head went brrr
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
Yeah it's an issue with the replicated aim offset I'm currently trying to work out. 🤔
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
It's just a problem with the lower LODs of the mannequins, maybe skin weights. It can be solved by locking to LOD 0 or deleting the other LODs.
@DarkHorizons13
@DarkHorizons13 2 ай бұрын
Now all I need to do is make a projectile spawn on fire, but I don't know how to attach it to the Blueprint component only a blueprint actor. Can someone enlighten me?
@Rev0verDrive
@Rev0verDrive 5 ай бұрын
Just curious if you're using simple static mesh bp classes for the world items? Most devs I come across are spawning the full weapon class as pickups which crushes server & client memory. Better to have a simple BP with mesh, interaction collision, gameplay tags (interface) and a struct for skin data. Have the server destroy/spawn or pool manage as needed.
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
Yes static mesh pickups.
@flooosee8437
@flooosee8437 4 ай бұрын
Hey, how can I add like accessories to weapons, like my current rifle have the stock and the mags separated from the skeletal mesh. In a previous turorial you made for the weapon system that wasnt replicated i could just add them in the BP of the weapon directly, but in this one there is no "viewport" in the BP of the weapon. Do I need to create a variable "accessory" pointing to a socket in Weapon_Master?
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
Yep, exactly. 🙂
@primalmc
@primalmc 4 ай бұрын
How would i fix my weapons sliding out of the socket when moving around
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
I've never encountered that...
@primalmc
@primalmc 4 ай бұрын
@@PitchforkAcademy i have my character retargeted as a metahuman could that cause the issue you think?
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
@@primalmc Yes. You should instead follow my video on setting the metahuman up without live retarget: kzfaq.info/get/bejne/Y9p9q8SVp8_KoIE.html 🙂
@ExussMusic
@ExussMusic Ай бұрын
can i use this with first person? And also how can i add a key to drop the weapon?
@sisqobmx
@sisqobmx 3 ай бұрын
Hello at minute 49 where we set up the weapon to spawn when we pick it up, how could i attach the component to an actor type of input? I have a thing that updates procedural data but it only accepts actor type of input not component. Any tips? Btw you're a very good teacher, was a blast to follow along.
@PitchforkAcademy
@PitchforkAcademy 3 ай бұрын
Maybe make Weapon Master an Actor instead of a component...
@sisqobmx
@sisqobmx 3 ай бұрын
@@PitchforkAcademy That did it, thanks a bunch dude!
@daybydaylight712
@daybydaylight712 2 ай бұрын
@@sisqobmx So basically just do the same as in tutorial but in place of component use Actor ???
@sisqobmx
@sisqobmx 2 ай бұрын
@@daybydaylight712 yep, when you’d create the blueprint component, you right click -> blueprint class - > actor ( the first option) you will also need to change the variable types which specify bp weapon component master to your newly created actor instead
@daybydaylight712
@daybydaylight712 2 ай бұрын
@@sisqobmx maybe you can share a screenshot example? Would be greatful
@luistgarcia
@luistgarcia 3 ай бұрын
I have a question if I want to add a camera to the skeleton components for when the character is going to aim from where would I do it? How do I add that camera?
@HarshTambe-wg1yw
@HarshTambe-wg1yw 2 ай бұрын
Hey is This System Compatable With ALS system as you know most of the Animation in it as Replicated just Need The weapon System
@PitchforkAcademy
@PitchforkAcademy 2 ай бұрын
The theory is applicable, but you would need to make it work.
@Vylocity
@Vylocity 3 ай бұрын
Hey! My weapons are separate static meshes(base, mag, slide, trigger, etc. that I attach in a blueprint for each gun. I see this uses a blueprint component which works because its a skeletal mesh. It is possible to still use this system with a BP of the weapon and not a BP Component of the weapon, but follow all the same logic? I tried static mesh component but it only allows for one mesh.
@Vylocity
@Vylocity 3 ай бұрын
FYI it did work with your other simulated physics weapon tutorial which is pretty cool :)
@PitchforkAcademy
@PitchforkAcademy 3 ай бұрын
You could make static mesh components that are children of the base static mesh, or you could just make the base class a BP and instead "attach ACTOR to component"
@Vylocity
@Vylocity 3 ай бұрын
@@PitchforkAcademy so with your last suggestion, I could attach a BP of the weapon and its parts, to an empty component with the same settings as your BP_WeaponComponentMaster? Sorry, just trying to wrap my head around this new territory haha
@PitchforkAcademy
@PitchforkAcademy 3 ай бұрын
@@Vylocity It should do, but that's really up to you to find out. Good luck! 🙂
@aakburns
@aakburns 5 ай бұрын
You are far to kind man. Appreciated.
@machloof
@machloof 13 сағат бұрын
yo mizzo if i wanna use a diifrent mesh for the gun how do i make the animations work
@PitchforkAcademy
@PitchforkAcademy 13 сағат бұрын
@@machloof A different mesh will require its own animations.
@JD_Main
@JD_Main 2 ай бұрын
Hey there, I found your channel recently and have been loving the videos you have highlighting network replicated functionality. Is there a way to contact you about some issues I can't resolve regarding this particular video? Cheers
@mattpur8486
@mattpur8486 5 ай бұрын
My friend, I got stuck on 42:15 on Spawn Primary Weapon where you dragged from Weapon To Spawn, in my case i dont have option to Add Component from Class, that I can connect to Weapon To Spawn... Any ideas where to look?
@mattpur8486
@mattpur8486 5 ай бұрын
EDIT: It was because I used Weapon Master blueprint from previous videos and that was not Skeletal Mesh Component Blueprint!
@SuperMan-nv6iu
@SuperMan-nv6iu 2 ай бұрын
Hey. Thanks for the tutorial. One small query. How is this tutorial different from other weapons systems tutorials of yours? Is this the updated version?
@PitchforkAcademy
@PitchforkAcademy 2 ай бұрын
This one's replicated
@aakburns
@aakburns 3 ай бұрын
Are you able to address the left hand? How would you go about setting the left hand placement per gun? I have some hand sway going on and that left hand while lined up correctly when not moving, it does not follow the weapon when looking around.
@PitchforkAcademy
@PitchforkAcademy 3 ай бұрын
kzfaq.info/get/bejne/nrR8Zqh9qLPSaGQ.html
@chronickev_
@chronickev_ 3 ай бұрын
Would there be a way to use another input "g key" to drop a weapon rather than only dropping when you pickup a new weapon?
@PitchforkAcademy
@PitchforkAcademy 3 ай бұрын
Of course
@AsleepTheory
@AsleepTheory Ай бұрын
Great tutorial thanks
@NeilClarenzSanMiguel
@NeilClarenzSanMiguel 4 ай бұрын
do you have a tutorial where the AI becomes visible only when you have this certain item, for example a flashlight
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
I do not. That would be quite tricky!
@lakatu-iw1yv
@lakatu-iw1yv 4 ай бұрын
I have a problem when I try to holster the pisto it appears at my characters feet even when I delete the shocker help plz
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
You just need to go back and find what you messed up...
@korypeters2059
@korypeters2059 4 ай бұрын
How did you Learn all of this ???? I'm a Red Seal Journeyman Boilermaker so I Understand knowing a career. But definitely lots of technicalities. A whole matrix. Why I never took the plunge into the abyss of computers. Learning now tho.
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
I just started learning from youtube tutorials in my spare time about 18 months ago. 🫠
@TheAngryRubberDuck
@TheAngryRubberDuck 2 ай бұрын
Never stop
@PitchforkAcademy
@PitchforkAcademy 2 ай бұрын
Ducky! You're too kind... My girl has gone traveling indefinitely so I haven't been up to the task lately but I'm starting to feel a little better; I'm actually working on a weapon system for the FPS Series as we speak! Thank you so much, I won't be stopping... 🫶
@TheAngryRubberDuck
@TheAngryRubberDuck 2 ай бұрын
@MizzoFrizzo that sucks. I hope all is well. I've actually been through something similar when mine went to Australia. But I can tell you that everything gets better and I've even forgiven you people. I've been going through it for the past couple of years and game development has really helped me. Your tutorials were no where close to the first I've gone through but are absolutely the first to make things make sense. So the odd 'super thanks' is an absolute bargain for the value.
@korypeters2059
@korypeters2059 4 ай бұрын
I'm stuck trying to fire a sniper then switching to my assault. I only have the one firing logic, etc
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
Make a boolean called canfire?, set it as false when you fire then put a delay before setting it as true again. Put a branch before your semi-auto logic with canfire? as the condition. Hope this helps.
@doomlord5236
@doomlord5236 3 ай бұрын
This tutorial is amazing it save my project lol keep it up but im wondering how to give each gun a damage type like if u pick a gun that shoot rapid and u pick another one that only shoot one shot at a time i wondering if i xan edit the fire mode in each of the wepon pick up to make diffrent fire mode when pick up weapon ?
@PitchforkAcademy
@PitchforkAcademy 3 ай бұрын
If you wanted to have each gun have its own uniquely firing properties, you could do so by containing the firing logic inside the weapon component. Just create the 'fire' function inside weapon component master and call that function as part of your character's firing logic. 🙂
@doomlord5236
@doomlord5236 3 ай бұрын
@@PitchforkAcademy ohhhhh ok i will try it thank
@doomlord5236
@doomlord5236 3 ай бұрын
@@PitchforkAcademy update it seem to work each weaon fire diffrent thing now but it cause alot of error when i try to replicate it
@louiscampeau7823
@louiscampeau7823 5 ай бұрын
hi was wondering if you where also going to add an online multiplayer tutorial ?
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
Maybe one day. ✌️
@louiscampeau7823
@louiscampeau7823 5 ай бұрын
thank you very much@@PitchforkAcademy
@Alagator192
@Alagator192 2 ай бұрын
does it have to be multiplayer
@PitchforkAcademy
@PitchforkAcademy 2 ай бұрын
Of course not...
@mikska
@mikska 4 ай бұрын
Hi, Do you have a tutorial that adds ammo clips as pickups with specific tracers for that ammo and damage?
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
I have an ammunition inventory tutorial with different ammo types, and if you wanted to add ammo-specific tracers would be easy using that system. 🙂 kzfaq.info/get/bejne/apabdbZ-3c7ag6c.html
@mikska
@mikska 4 ай бұрын
@@PitchforkAcademy great, thanks you
@L.ACTIVISTE
@L.ACTIVISTE 3 ай бұрын
Wowww!great!i'm just loosing my self with replicated,expose on spawn,ROS and multicast.I've to work on it😅😅
@QuantumPixelJoystick
@QuantumPixelJoystick 5 ай бұрын
Amazing ! Thanks
@xmatrixtv1
@xmatrixtv1 2 ай бұрын
hi i want to add a sniper with the AR and pistol how can i do that?
@xmatrixtv1
@xmatrixtv1 2 ай бұрын
how can i add more weapons instead of 2
@PitchforkAcademy
@PitchforkAcademy 2 ай бұрын
@@xmatrixtv1 You'd probably want to use an array.
@xmatrixtv1
@xmatrixtv1 2 ай бұрын
How can I use it?
@PitchforkAcademy
@PitchforkAcademy 2 ай бұрын
@@xmatrixtv1 That's a big question. Short answer: youtube it. Good luck!
@a1zombieslayer148
@a1zombieslayer148 5 ай бұрын
hey there mizzo i had a question its a more complicated one but how would you go about combining this weapon system with an inventory system? (spatial based inventory to be precise) ive never done that in unreal and i really don't know where to start to combine the two would i just make the system as a child of my item class or would i want to call functions as needed, or would i skip the sections on the two weapon system and use my inventory system instead? im trying to make a system kind of like dayz if that helps
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
It depends how you set up your inventory system. I can't help you I've never played Day Z.
@unjustifiedexistence9369
@unjustifiedexistence9369 5 ай бұрын
​@@PitchforkAcademycompletely get it thank you for the quick response the way the inventory is set up is you have the item you pick up it goes to the inventory and you can drag and drop items around. each item has certain dimensions for fitting in the inventory say its a 7x7 grid and an ak is 6x2 it would take up that many slots of the inventory the ak item blueprint holds the information concerning the parts of the inventory around the ak. Im just wondering what the best ideas would be to integrate your weapon system into an inventory like if I should make the weapon master a child of my item bp so they all have the functionality of the inventory or if I should make them 2 different things and use an interface to change which one im using
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
@unjustifiedexistence9369 Yeah that's up to you, my man. Good luck!
@a1zombieslayer148
@a1zombieslayer148 5 ай бұрын
@@PitchforkAcademy thank you mizzo if i get it figured out would you like the info on things needed to change for it to work with an inventory? potentially for a new tutorial in the future?
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
@a1zombieslayer148 If it's an elegant solution I could be interested, sure.
@NemesisQX321
@NemesisQX321 5 ай бұрын
hey man u doing Great can you make Mirrors edge game like Parkour system (wall running vaulting types climbing zipline and speed boost )
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
What you're asking for is basically an entire gameplay prototype for a game, so no. I make basic beginner's tutorials. ✌️
@NemesisQX321
@NemesisQX321 5 ай бұрын
@@PitchforkAcademy ohh allright just vaulting maybe just wanna learn fps games and mixing parkour just looking great
@mikska
@mikska 4 ай бұрын
Hi all, I'm stuck at 49:00 . Update: Enhanced input not working on server. FIXED: adding an Event Possessed node to cast to PlayerController in your Character BP fixed the issue.
@PitchforkAcademy
@PitchforkAcademy 4 ай бұрын
I don't know what to tell you, other than you need to go back and find what you missed. As for the IK error, we didn't cover anything to do with IK in this tutorial..... Good luck!
@mikska
@mikska 4 ай бұрын
@@PitchforkAcademy Oh wow , didnt expect such a quick reply , and one from you, Im sure youre a busy man, thanks so much. Will have to go back and see what i missed.
@llamabro1979
@llamabro1979 3 ай бұрын
ho\/\/ do you fix it edit: the problem i am having is that the character is not picking up the gun at this part in the video 49:00
@mikska
@mikska 3 ай бұрын
@@llamabro1979 if you are using a child character you need to add the Enhanced input activation nodes to it, for some reason it doesn’t activate off the parent blueprint, and if that doesn’t work add an “event possessed” node when casting the enhanced controls to character blueprint.
@WatchItEnd
@WatchItEnd 8 күн бұрын
I had the exact same issue, ill tell you how I fixed it. In my player blueprint off of "event begin play" my "add mapping context" was referencing the wrong IMC, since I had multiple IMC's in my project. Your issue might be different but I hope this becomes helpful to someone.
@DanielsChannelNo2
@DanielsChannelNo2 5 ай бұрын
Heyho whats the reason ur this time using a skelemesh component actor instead of an full actor for the weaponmaster?
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
It's more efficient and cleaner...
@DanielsChannelNo2
@DanielsChannelNo2 5 ай бұрын
​@@PitchforkAcademy i see thx for the answer even if this is kinda downputting cause i just investigated the other system and started to costumize it :D
@PitchforkAcademy
@PitchforkAcademy 5 ай бұрын
@@DanielsChannelNo2 Downputting??
@DanielsChannelNo2
@DanielsChannelNo2 5 ай бұрын
@@PitchforkAcademy yes now i gotta start again from scratch for the replicated version ,but im nrly thru now (with some hickups) as we talk :D
@korypeters2059
@korypeters2059 4 ай бұрын
I'm having a hard time on anyone with a video where you can have multiple guns. With different damages and styles.
How To Make A Multiplayer FPS (First Person Shooter) - Part 1 - Unreal Engine 5 Tutorial
28:52
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 22 М.
How To Make A Third Person Shooter - Unreal Engine 5 Tutorial
57:03
Pitchfork Academy (MizzoFrizzo & Co.)
Рет қаралды 15 М.
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 42 МЛН
Box jumping challenge, who stepped on the trap? #FunnyFamily #PartyGames
00:31
Family Games Media
Рет қаралды 29 МЛН
Sunglasses Didn't Cover For Me! 🫢
00:12
Polar Reacts
Рет қаралды 5 МЛН
How to create Modular and Scalable UI systems in Unreal Engine
19:15
Unreal Engine tutorials dont teach you about this...
19:55
RubaDev
Рет қаралды 18 М.
Weapons In Video Games (This is How it's Done!)
6:36
MoBassem
Рет қаралды 47 М.
UE5.1 & UE5.2 Local Multiplayer Fix/Tips (Gamemode Logic)
11:16
Wild Ox Studios
Рет қаралды 7 М.
I solved Unreal Engine's Package Size Problem...
14:35
Cobra Code
Рет қаралды 67 М.
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 42 МЛН