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

[General] Remove Special Effect from Unit Group

Status
Not open for further replies.
Level 28
Joined
Feb 18, 2014
Messages
3,580
Hey, how can I remove a special effects from a group of units? I tried to do this but it doesn't work :
  • Trigger
    • Events
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area) owned by Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Special Effect - Create a special effect attached to the overhead of (Picked unit) using Abilities\Spells\Other\TalkToMe\TalkToMe.mdl
          • Set SpecialEffect = (Last created special effect)
          • Wait 3.00 seconds
          • Special Effect - Destroy SpecialEffect
Can someone explain me what's wrong with this trigger?
 
Level 13
Joined
May 10, 2009
Messages
868
Waits make both unit and player groups crash, that is, anything below "wait" action won't be executed for each enumerated unit/player. You'll need some kind of "MUI" trigger that handles those special effects for destroying them later.
 
Status
Not open for further replies.
Top