• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[General] Remove Special Effect from Unit Group

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