• 🏆 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!

[Solved] Does this leak? (Region centered at 'point' condition)

Status
Not open for further replies.
Level 8
Joined
Mar 17, 2016
Messages
133
I have a feeling that this might be leaking, but am not sure and cannot find any info on it. I know the points leak, I have a trigger running every .2 seconds, setting 'Point[22]' and clearing it 0.198 seconds later. More what I'm wondering about is the region itself. Does the region clear after the event is checked?

  • HB Gather
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Region centered at UnitAbilPoint[22] with size (750.00, 750.00)) contains (Dying unit)) Equal to True
    • Actions
 
It's just the native function that should be used to remove the region. I didn't want to confuse with it. You don't really need this line:
"native RemoveRect takes rect whichRect returns nothing"
... it's just the definition.

The custom script below is a usage example for this function, which could be used.
 
Last edited:
Status
Not open for further replies.
Top