- Joined
- Aug 1, 2013
- Messages
- 4,658
Time for me to act dumb 
1. Which one is better?
-----
(Assuming that there will be no manual calls.)
2. How do I play a sound multiple times?
For example, I have a missile that plays a sound each time it hits a target.
However, the sound is played one time, then it won't play any more until it is finished.
How do I make it play multiple times at once.
3. How do I create massive registries without breaking the Operation Limit?
(And how big is that limit?)
Lets say I have 100 operations for each unit type and register 200 units.
Then I have 100 operations for each item and register 300 of those as well.
Then I register 400 abilities that require 100 operations.
Then I set data of all pre-made objects which requires for example, 10k operations.
Now I have 100k operations.
Can I simply put a
4. What is TimerUtils and what does it do?
I always wondered and on the main threads it is actually never clearly told.
5. How can I reduce loading time of the map?
My map is currently loading 1:20-1:30 on my laptop and will be increasing massively (at least that is what I expect).
Are there any basic things that I can do to improve it?
6. Does it help to remove dead units?
I heard that units cause leaks. Maybe removing units can help that.
1. Which one is better?
call TriggerRegisterPlayerUnitEvent(t, Player(0), EVENT_PLAYER_UNIT_ATTACKED, null)
call TriggerAddCondition(t, Filter(function f))
-----
call TriggerRegisterPlayerUnitEvent(t, Player(0), EVENT_PLAYER_UNIT_ATTACKED, Filter(function f))
(Assuming that there will be no manual calls.)
2. How do I play a sound multiple times?
For example, I have a missile that plays a sound each time it hits a target.
However, the sound is played one time, then it won't play any more until it is finished.
How do I make it play multiple times at once.
3. How do I create massive registries without breaking the Operation Limit?
(And how big is that limit?)
Lets say I have 100 operations for each unit type and register 200 units.
Then I have 100 operations for each item and register 300 of those as well.
Then I register 400 abilities that require 100 operations.
Then I set data of all pre-made objects which requires for example, 10k operations.
Now I have 100k operations.
Can I simply put a
call TriggerSleepAction(0.01)
between most of them or do I have an alternative option?4. What is TimerUtils and what does it do?
I always wondered and on the main threads it is actually never clearly told.
5. How can I reduce loading time of the map?
My map is currently loading 1:20-1:30 on my laptop and will be increasing massively (at least that is what I expect).
Are there any basic things that I can do to improve it?
6. Does it help to remove dead units?
I heard that units cause leaks. Maybe removing units can help that.