Is it okay to use global variables for scripts where sou want to know, if action (forexammple pick up) is done on all objects (forexample 4)? So im using global variable, simply incrasing value on every pick up, and if its 4, action is done.
But i realize there isn't many global variables in game, so mabye its better to use diffrent way.
So what is the best way to do that? Im trying to do it as easy and fast (for computer) as possible.