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

[Trigger] How do i remove a unit-group ?!

Status
Not open for further replies.
Level 9
Joined
Jan 23, 2008
Messages
384
Hi
I'm trying to remove a unit group that contains 6 units please help me ... this is what i did, if there are bugs that stop the group for being removed tell me what to do ... Ty !

  • Amaterasu
    • Events
      • Unit - A unit Begins casting an ability
    • Conditions
      • (Ability being cast) Equal to Amaterasu
    • Actions
      • Wait 0.50 seconds
      • Set Ama_Target = (Target unit of ability being cast)
      • For each (Integer A) from 1 to 6, do (Actions)
        • Loop - Actions
          • Unit - Create 1 Amaterasu Flames for (Owner of (Triggering unit)) at (Position of Ama_Target) facing Default building facing degrees
          • Unit Group - Add (Last created unit) to Ama_Group
      • Wait 5.00 seconds
      • Unit Group - Remove all units from Ama_Group
I want the target to be sorounded by flames for 5 seconds ... i made it but the flames won't disappear .
 
Level 17
Joined
Jan 21, 2007
Messages
2,013
That is becuz you didn't remove the units. U just removed them from the unit group. This is two different thing, keep them aside.

Remove unit from game - removes the unit from the game basically.
Remove unit from unit group - removes the unit from the unit group you've added it into. The unit itself is not affected by being in the unit group, it is a tool to keep track of your units, etc.

Just add this before "remove all units in unit group":
Pick all units in (unit group) and do actions
Remove (picked unit) from the game
 
Status
Not open for further replies.
Top