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

Should i destroy this unit group?

Status
Not open for further replies.
Level 13
Joined
Feb 18, 2009
Messages
1,381
So, i've encountered a problem, i am not aware which is wrong or right?
I have 2 unit groups (variables) (horde and alliance) and i have to use it very often, so i am not aware if i should destroy it or what.

Will it leak if i don't?
Will it work if i do?

(Triggers)
  • Choose Paladin
    • Events
      • Unit - A unit enters Paladin choose <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Peasant
    • Actions
      • Player Group - Add (Owner of (Triggering unit)) to Alliance
      • Unit - Create 1 Paladin for (Owner of (Triggering unit)) at (Center of Spawn <gen>) facing 180.00 degrees
      • Unit - Kill (Triggering unit)
  • Travel
    • Events
      • Unit - A unit comes within 256.00 of Sorceress 0002 <gen>
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Triggering unit)) is in Alliance) Equal to True
        • Then - Actions
          • -------- ALL MY TRIGGERS --------
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Owner of (Triggering unit)) is in Horde) Equal to True
            • Then - Actions
              • -------- ALL MY TRIGGERS --------
            • Else - Actions
 
Level 13
Joined
Feb 18, 2009
Messages
1,381
I don't understand?
They are stored in variables (Unit Groups) but i have to use them, so if i destroy it, will i still be able to use it?
 
Status
Not open for further replies.
Top