The idea is to check for multiple items, if I have said items door opens. this is the function to check for multiple items i feel like im 90% there…but it works too good and opens when I have one item.
the quantity and name are both instance editable so that i can set right from the door itself what i expect it to open with.
Rather than using FoundIndex, you’d run a ForEachLoop (with Break, optionally) on the Items array and test against ItemToCheck. Have an additional local boolean flag in that loop, indiciating whether the conditions have been met. If so → Break → Complete → use resulting bool to Branch.