• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

HIVE

KILLCIDE
KILLCIDE
Yep :p you're technically creating a leak by doing that haha.
MyPad
MyPad
I included the array version of it now. Win some, lose some :)
KILLCIDE
KILLCIDE
Why are you creating the unit group again the array version?
MyPad
MyPad
I created it directly since I know what it is going to be used for, registering when a unit enters a specific region. Otherwise, I would have made the group variable an array as well.
KILLCIDE
KILLCIDE
Like I said, unit groups are created during map init, so there's no need to do that.
MyPad
MyPad
Wait, did I create them again? I'll check it out.

EDIT:

Comment - You would no longer need these lines of code below...
Set Center = Tower <gen>
Set APOINTTEMP = (Position of Center)
Set Group = (Units within 400.00 of APOINTTEMP)
Custom script: call RemoveLocation (udg_APOINTTEMP)
Comment - ...above

Found out that you were pointing to the aforementioned line of code.

I'll check the array now...

EDIT:

The array section is okay.
KILLCIDE
KILLCIDE
Map Initilization. You do it in both the hashtable + array versions.
MyPad
MyPad
Ah, initializing it twice was my mistake, although each one is a unique solution to the problem.
Top