Hi,
I'm working on a strategy game and I try to construct the build-menu.
Here is the situation:
When you open the menu there should be a check, if you have enough money (global var "money"). "btn_build_res_th" and "btn_build_res_default" are buttons to build buildings. Both are in a family called "menu_cards".
When you call the function "check_money" it should check for each element in the family "menu_cards" if its local var "cost" is less the global var "money". If true it should set the boolean var "active" for each element in "menu_cards".
But unfortunally it does not work and "active" is not set.
Why it doesn't set the boolean at event 7 for "btn_build_res_th" and "btn_build_res_default" which are in the family "menu_cards"?
I got a similar problem at another point, where I can't use families in a function.