- Joined
- Jan 16, 2008
- Messages
- 156
I've been using a gate trigger with lots of success for awhile, but initially it never had anything to stop people from opening and closing the gate rapidly, making it hard for the invaders to actually destroy the gate.
Thus I created this trigger below, and it works great, but unforunately I think this is the source of my memory leak, after I heard that this kind of event leaks. There are 16 gates in my map, each with a trigger like this. And literally tens of thousands of units enter these regions in the span of a single game.
I've been thinking about doing a "unit within range" event instead, would that event leak? It is very hard for me to test this unless I run the map on Battle.net, which means releasing a new version, so if anyone has some insight into how to fix this trigger, or another idea about a leakless trigger to fix the gate exploit, please let me know.
Thanks!
Thus I created this trigger below, and it works great, but unforunately I think this is the source of my memory leak, after I heard that this kind of event leaks. There are 16 gates in my map, each with a trigger like this. And literally tens of thousands of units enter these regions in the span of a single game.
I've been thinking about doing a "unit within range" event instead, would that event leak? It is very hard for me to test this unless I run the map on Battle.net, which means releasing a new version, so if anyone has some insight into how to fix this trigger, or another idea about a leakless trigger to fix the gate exploit, please let me know.
Thanks!
-
Azeroth Main Disable
-
Events
- Unit - A unit enters Region 043 <gen>
-
Conditions
- ((Triggering unit) is A ground unit) Equal to True
- ((Triggering unit) belongs to an enemy of Player 1 (Red)) Equal to True
-
Actions
- Trigger - Turn off (This trigger)
- Trigger - Turn off Azeroth Open Main Gate <gen>
- Wait 8.00 seconds
- Trigger - Turn on Azeroth Open Main Gate <gen>
- Trigger - Turn on (This trigger)
-
Events
-
Azeroth Open Main Gate
-
Events
- Player - Player 2 (Blue) Selects a unit
-
Conditions
- (Triggering unit) Equal to Gate Open Lever 0014 <gen>
- (Gate (Vertical) 0032 <gen> is dead) Equal to False
-
Actions
- Trigger - Turn off Azeroth Main Gate Life <gen>
- Set AzerothMainbreak[1] = (Current life of Gate (Vertical) 0032 <gen>)
- Destructible - Open Gate (Vertical) 0032 <gen>
-
Events
-
Azeroth Close Main Gate
-
Events
- Player - Player 2 (Blue) Selects a unit
-
Conditions
- (Triggering unit) Equal to Gate Close Lever 0015 <gen>
- (Gate (Vertical) 0032 <gen> is dead) Equal to True
- AzerothMainbreak[1] Not equal to 0.00
-
Actions
- Trigger - Turn on Azeroth Main Gate Life <gen>
- Destructible - Close Gate (Vertical) 0032 <gen>
- Destructible - Set life of Gate (Vertical) 0032 <gen> to AzerothMainbreak[1]
-
Events
-
Azeroth Main Gate Life
-
Events
- Destructible - Gate (Vertical) 0032 <gen> dies
- Conditions
-
Actions
- Set AzerothMainbreak[1] = 0.00
-
Events