I have a weapon switcher code that basically switches weapons only in the Output Text menu. All items models are visible, and I want all to be invisible except the selected one,
My understanding, what I need to do is make the Array visibility = false, but make the Selected Variable visibility = True
Code looks like,
Var weapons: Array[Node] = []
Var selected: = 0
Func _ready() -> void:
print(weapons[selected])
Func _process(delta):
just some code to swap the selected button number on a button press, and to return the array to the beginning when you reach the end