I am having problems setting variables inside a struct(inside of a array).
I’m working on a hint system. I have an array of hints and I have a variable bool for if the player has bought the hint or not. So I have made a function inside the objective tracker that is used to buy the hint. It is suppose to set bool to true on that hint-item. But I can’t make it change the value. If I don’t hard code it from the start it will always be false.
What I do is a foreachloop that loops thru and finds the hint I need to change, then I use “setMember” to set the variable inside that array element(struct). I have tried it a couple of different ways but it still does not work.
Does anyone know what I am doing wrong?