Will this work?

Chaos_Knight

New Member
Reaction score
39
Okay, will this work? I think it wont but i assume it still will leak.
Trigger:
  • Triger
    • Events
      • Time - Every 0.03 seconds of game time
    • Conditions
    • Actions
      • Custom script: call RemoveLocation(udg_MyVar)
      • Custom script: call DestroyGroup(usg_MyGroup)


To destroy leaks?
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
Why would you even consider doing that? Just clean the leaks whenever you create them, something like this should not be done.
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
It would all depend on what you mean with "work". It will compile, though it will constantly try to remove locations that do not exist, and destroy groups that are not there. If you for some unfathomable reason want to achieve this, then by all means it "works".
 

Chaos_Knight

New Member
Reaction score
39
It would all depend on what you mean with "work". It will compile, though it will constantly try to remove locations that do not exist, and destroy groups that are not there. If you for some unfathomable reason want to achieve this, then by all means it "works".
If i create a trigger where it doesnt remove this leak. Will it work then, with this trigger?
 

Larcenist

REP: Respect, Envy, Prosperity?
Reaction score
211
I'm not sure how constant double freeing of locations and similar affects the game, since it's just plainly dumb to do to begin with. It would remove your locations and groups, but the better alternative is to do it correctly, within the trigger using them.
 

PrisonLove

Hard Realist
Reaction score
78
It will work, but it may inadvertently remove a leak that wasn't intended to be removed yet, thus causing major errors. It is always best to remove leaks in the triggers that they occur in, or else it could lead to many unintended errors.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    I reorganized the forums somewhat but I doubt anyone would notice
  • The Helper The Helper:
    Happy Friday!
    +1
  • The Helper The Helper:
    Happy Saturday!
    +1
  • The Helper The Helper:
    The forum software says we have 554 members online now. We did not have that many unique visitors the whole day today. Too many bots and the disconnect between the forum counts and the stats.
  • Varine Varine:
    Currently it says 413 guests and 2 members
    +1
  • Varine Varine:
    Aww
  • The Helper The Helper:
    That is going to be mostly bots
  • The Helper The Helper:
    527 (members: 2, guests: 525)
  • The Helper The Helper:
    Happy Saturday!
    +1
  • V-SNES V-SNES:
    Happy Saturday!
    +1
  • The Helper The Helper:
    622 (members: 2, guests: 620)
  • The Helper The Helper:
    666 (members: 4, guests: 662) :)
    +1
  • Varine Varine:
    609 (members: 4, guests: 605)
  • The Helper The Helper:
    I was posting that last one because the 666 users online :)
    +1
  • The Helper The Helper:
    Happy Wednesday Night!
    +1
  • The Helper The Helper:
    Happy Thursday!
    +1
  • The Helper The Helper:
    Marathon watching The Expanse!
    +1
  • V-SNES V-SNES:
    Happy Friday!
    +1
  • The Helper The Helper:
    leaving for the weekend in San Antonio will be gone until Sunday afternoon
    +1
  • The Helper The Helper:
    and I am back :)
    +1
  • The Helper The Helper:
    Happy Tuesday!
    +1

    The Helper Discord

    Members online

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top