I watched a hotbar tutorial and it worked quite nicely, however im having trouble isolating code based on what item is selected, and it doesnt have a second tutorial, i would like to do, for example, something like a key where you can only unlock if the key is selected or a system where you can observe a specific item closer
Does anyone know how i could identify and do if codes based on what item is selected?
I tried doing if ItemData.item_name == ("name") but it didnt work
It was this one: https://youtu.be/JGzzflXDEPE?si=lTjqavyH1KogVB-I
Interactable 3D Item Pickup & Drop from Hotbar, Inventory System using signals, and implementing Viewmodel for the Item in Godot 4
-
Related Videos -
3D Controller & Interaction - https://youtu.be/-N9PZsUcE-c -
Timestamps -
0:00 - Preview
0:24 - ItemData Resource
1:20 - Inventory (Hotbar)
5:24 - Interactable
7:49 - Item Dropping
10:00 - Viewm...