- Joined
- Nov 29, 2006
- Messages
- 2,482
Hm well, I dont need any help with the scripting this time... I just need some info
But let say I have this event every 5 seconds. Should I add all units which I want to use in the group and then filter them by if:s?
Or should I declare a new unit group for each type?
What is the best in speed and anti-lag aspect?
My second question is: If I have a timer which is periodic every 1 seconds. Would it be best to add all units which is going to be used in the group through the whole game and add/remove units into it once they're created/destroyed?
Or should I create a group at every timer expiration and then destroy the group once its created?
/regards
But let say I have this event every 5 seconds. Should I add all units which I want to use in the group and then filter them by if:s?
Or should I declare a new unit group for each type?
What is the best in speed and anti-lag aspect?
My second question is: If I have a timer which is periodic every 1 seconds. Would it be best to add all units which is going to be used in the group through the whole game and add/remove units into it once they're created/destroyed?
Or should I create a group at every timer expiration and then destroy the group once its created?
/regards