Oliver Hope 261 Posted November 30, 2018 Hey all So in my game I am using arrays to keep track of different teams, one array so called thieves and the other security and I can do for each item in array to access them. However I just read a thread where someone reccomend to use labels and now I would like to know which is better. My question is should I use arrays or labels for teams? What are the pros/cons of each ? thanks Oliver Share this post Link to post Share on other sites
Houp 237 Posted November 30, 2018 Hi, using your own arrays is probably better from performance view. (For each loop over entities from label creates a new array each time you do it) Labels are "Sets", each entity/game logic can be there only once. You can use what suits you better. It can be easier to work with labels for someone. 1 Share this post Link to post Share on other sites
Rudy.cz 41 Posted November 30, 2018 Labels have the advantage that you can use them as trigger object or target in Trigger Zones and Listeners. 1 Share this post Link to post Share on other sites