• 🏆 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!
  • ✅ Time to vote for the top 3 models! The POLL for Hive's 6th HD Modeling Contest: Mechanical is now open! 📅 Poll close on July 16, 2024! 🔗 Cast your vote now!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

[General] Remove Special Effect from Unit Group

Status
Not open for further replies.
Level 29
Joined
Feb 18, 2014
Messages
3,584
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