Good day Everyone,
Pls i need assistance on how i can attach more than two weapons to my character
see screenshots below:
Thanks in advance.
Good day Everyone,
Pls i need assistance on how i can attach more than two weapons to my character
see screenshots below:
Thanks in advance.
Hey there @Oyebode_Fawaz! So it looks like your player can handle swapping weapons from sockets directly, and this is fairly extendible.
You just have to have some form of inventory system for the guns you won’t be able to fit on your character. What you’ve got now should work with a little changes to how spawn weapon works here.
So from a high level perspective, you’d need to make an array of items you have (ie a basic inventory) and make references to them for your spawn weapon script. You’ll also have to make sure the 2 weapons you have used last get put in your socket slots, and any other weapons go back to the inventory.
Most of this tutorial is redundant but it should show you the basics of a small inventory system, and from there you’d be able to call back to it to change weapons instead of in widget, you’d cycle down the list.
Disclaimer: Epic Games is not liable for anything that occurs outside of this domain. Please follow links with your own discretion.
Thank you very much