Problems with spell trigger

mapguy

New Member
Reaction score
46
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)

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?

WHAT CAN BE RESPONSIBLE FOR THE MAJOR LAG?

-leaks?
-units?
-periodic checks?
 

wraithseeker

Tired.
Reaction score
122
Leaks, if your trigger leaks with periodic checks, I hope your computer doesn't crash that are lower then 0.04.

Post the Entire trigger so people can examine the leaks or what so ever.

Mind telling us where you got it too :)
 

wraithseeker

Tired.
Reaction score
122
Post the code, ??? spam isn't nice to tell you so.

Who made the spell? Was it trollvollet?

If it was his, it wouldn't leak probaby and might be due to something that you have changed.

Also, have you checked correctly? By turning off all other triggers except the meat hook and then running it and see if it lagged.
 

mapguy

New Member
Reaction score
46
I made the spell by myself.

I haven't copy the TRIGGER! I just created a new spell using a pre-existent idea.

I'm not in home with my PC, i'll post the trigger when I get home.
 

Baltazhar

Active Member
Reaction score
55
Hope you do that.
From the one line you posted it's impossible to see where in the trigger it goes wrong.

When you post your trigger remember to wrap it in
Trigger:
  • tag, for easier reading <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" />
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top