Help to complete what is missing in the video

Solution by parts with images because it is incomplete and the truth bothers the blocking, I hope it helps.

BREAK WEAPONS TYPES:

We created an enum that puts assault rifle, smg, sniper the types of weapons you want in your game

then we create a struct with a variable in that variable we call the enum we just created

And all that remains is to enter W_struct and create a variable where you would call the structure you just created with the weapon type enumeration

THETWOFUNCTIONS:


I leave reference of how they are created from a YT comment: I just created two custom events first one names ‘set weapon data’ and then you get the current preview and pull out and set the weapon data then plug the weapon data into the ‘set weapon data’ event as an input. Create another custom event called ‘widget switcher’ and get the weapon and attachments and set the active widget index then plug the index into the input for that custom event.

The two functions are created in the customization widget

Widguet Switcher:

Set Weapon Data:

CHANGE TEXT:

To change the name of the weapon sloth widget we must go to text → details --content—>bind

Once you have given bind, you should see the Itemdata variable in the properties, move the cursor over it and select the NAME variable

To change the text of the personalization widget is almost the same, we search and select the text, we look for the content section and press bind

Then in properties we look for the current viewer variable

Once open we look for the weapon data variable.

And all that remains is to choose the variable name again

POSSIBLE ERROR IN CHANGING WEAPONS:

In the case where the weapons didn’t change, I tried casting the player character instead of calling it from a reference variable. All this in the sloth weapon widget on the hover button function, and if it has been resolved

I think everything is there and I hope I don’t forget anything… good luck :innocent: