I'm creating an spell which is based on "meat hook" but have some modifications.
The spell works fine and all actions are well done. but, for some reason I don't know why, since the tenth ti9me I use the spell in the same game it starts to cause a MAJOR LAG!
I want to know if this is the part which is causing the problem (IF YOU WANT ME TO PUT THE ENTYRE TRIGGER HERE ASK ME)
should I create a new part called?
WHAT CAN BE RESPONSIBLE FOR THE MAJOR LAG?
-leaks?
-units?
-periodic checks?
The spell works fine and all actions are well done. but, for some reason I don't know why, since the tenth ti9me I use the spell in the same game it starts to cause a MAJOR LAG!
I want to know if this is the part which is causing the problem (IF YOU WANT ME TO PUT THE ENTYRE TRIGGER HERE ASK ME)
Code:
-set G = units withing 50 range of CHAINPART[number of units in chainparts] matching (owner of (Berserked)) is an enemy of (owner of (matching unit)) equal to true and (matching units is alive equal to true)
should I create a new part called?
Code:
set P = player group all enemies of nerserked
I ALSO DISCOVER THAT I WAS CREATING UNIT GROUPS AND LOCATIONS BUT I WAS NOT DESTROYING THEM. can It cause a leak?
I was using "set X = value" but I was not destroying! can it cause the lag?
I was using "set X = value" but I was not destroying! can it cause the lag?
WHAT CAN BE RESPONSIBLE FOR THE MAJOR LAG?
-leaks?
-units?
-periodic checks?