• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,014
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