Whever I try to swap my Enum 1 Value to Enum 2. Both just become the same value.

So, I’m making an inventory system for my new game. And I’m using Enums to determine the Item type. So every Slot has an Enum Variable. So I’m working on the swap mechanic in most games with inventories. I’m testing with slot 1 and slot 2. But whenever I try to swap them, for example if slot 1 was chosen for swapping, and you press Slot 2 to swap those contents to there. To determine what slot Is the main slot that is swapping the the second slot aka "
Slot 2" “Slot 1 = Healables” = “Slot 2 = Pistol Ammo.” Slot 1 goes into the Set Slot 2 Value, and Slot 2 Goes into the Set Slot 1 Actor. I know what’s going on. But I have no idea on how I can fix it. Any help is appreciated

Code in question btw:

You need to use a temporary ‘in between’ variable :slight_smile:

Because, right after you did this

They are both the same. So

Temp = Slot1
Slot1 = Slot2
Slot2 = Temp

3 Likes

(post deleted by author)

Sorry I don’t quite understand. I understand that there’s a temporary and the temp is = slot 01.
And I’ve tried replicating it to what I understood from u, and It’s still doing the same thing. So I think I may have misunderstood the instructions and If so I’m sorry. I’m kinda dumb when It comes to
interpreting
instructions, Sorry:
This is what I got out of it (Had to repost my reply I send the wrong screenshot srry) :sweat_smile:

1 Like

Nvm I figured it out! Ty!
If anyone in the future, is looking for the answer here:

1 Like