Many Triggers or Many Events?

Bribe

vJass errors are legion
Reaction score
67
Some people handle the event-approach by using a single trigger per single-unit event, whereas others handle the approach by using a single-trigger with many, many single-unit events. I can't imagine destroying the trigger removes the event from scope, nor the handle index, so wouldn't it be technically more efficient to just use one huge trigger to handle the whole thing?
 

Azlier

Old World Ghost
Reaction score
461
When you destroy a trigger, the events and conditions (not actions) are automatically destroyed as well (providing you had no variables referencing them...).

So, it do be more efficient to use multiple triggers if you're going for a damage detection system or something.
 

Bribe

vJass errors are legion
Reaction score
67
This one's for a non-ObjectMerger reincarnation-detection system.

When the heck did I give you reputation? Ey. Good to know, Az.
 

Troll-Brain

You can change this now in User CP.
Reaction score
85
Sorry but last time i checked, events weren't destroyed when the trigger was destroyed, or at least there was a leak.
Or maybe it depends which events.
 
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