Memory leaks with "wait" - Solved.
Hello there Hive, I hope you can help me with my simple question.
Now, in my map (which is 100% GUI as of now) there's lots of times where I find myself in a situation where a wait-command seems like a neccessity, e.g
A simple dummyspell (which works perfectly, mind you) that creates two Carrion-swarm type spells...Since I want it to look like a spiral, this has to have some sort of delay.
Now I know that the "wait" creates memoryleak of some sort. Is there any way to make this a little more elegant in GUI? I appreciate every bit of help. I can't really be bothered to learn JASS, so if that isn't really possible just tell me right away and I'll just stop, lol.
Thanks in advance
Hello there Hive, I hope you can help me with my simple question.
Now, in my map (which is 100% GUI as of now) there's lots of times where I find myself in a situation where a wait-command seems like a neccessity, e.g
-
For each (Integer A) from 1 to 18, do (Actions)
-
Schleifen - Aktionen
- Set Karir_P2_Flammenspirale_Aim = (Karir_P2_Flammenspirale_Aim + 10.00)
- Set Karir_P2_Flammenspirale_Aim_B = (Karir_P2_Flammenspirale_Aim_B + 10.00)
- Einheit - Create 1 DUMMY - Schockwelle v. Flammenspirale for (Owner of Karir_P2_Flammenspirale_Caster) at ((Position of Karir_P2_Flammenspirale_Caster) offset by 200.00 towards Karir_P2_Flammenspirale_Aim degrees) facing Vorgabe für Gebäude-Ausrichtung degrees
- Einheit - Add a 1.00 second Standard expiration timer to (Last created unit)
- Einheit - Order (Last created unit) to Untoten-Schreckenslord - 'Aas-Schwarm' ((Position of Karir_P2_Flammenspirale_Caster) offset by 350.00 towards Karir_P2_Flammenspirale_Aim degrees)
- Einheit - Create 1 DUMMY - Schockwelle v. Flammenspirale for (Owner of Karir_P2_Flammenspirale_Caster) at ((Position of Karir_P2_Flammenspirale_Caster) offset by 200.00 towards Karir_P2_Flammenspirale_Aim_B degrees) facing Vorgabe für Gebäude-Ausrichtung degrees
- Einheit - Add a 1.00 second Standard expiration timer to (Last created unit)
- Einheit - Order (Last created unit) to Untoten-Schreckenslord - 'Aas-Schwarm' ((Position of Karir_P2_Flammenspirale_Caster) offset by 350.00 towards Karir_P2_Flammenspirale_Aim_B degrees)
- Wait 0.01 seconds
-
Schleifen - Aktionen
A simple dummyspell (which works perfectly, mind you) that creates two Carrion-swarm type spells...Since I want it to look like a spiral, this has to have some sort of delay.
Now I know that the "wait" creates memoryleak of some sort. Is there any way to make this a little more elegant in GUI? I appreciate every bit of help. I can't really be bothered to learn JASS, so if that isn't really possible just tell me right away and I'll just stop, lol.
Thanks in advance
Last edited: