• 🏆 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] Problem destroying visibility modifier

Status
Not open for further replies.
Level 8
Joined
Mar 5, 2011
Messages
199
I can't destroy the visibility modifier i created

  • Level 2 Murgul Intro
    • Events
      • Unit - A unit enters Murgul Snarecaster <gen>
    • Conditions
      • (((Triggering unit) is A Hero) Equal to True) and (((Triggering unit) belongs to an ally of Player 5 (Yellow)) Equal to True)
    • Actions
      • Trigger - Turn off (This trigger)
      • Player Group - Pick every player in Main_PlayerGroup and do (Actions)
        • Loop - Actions
          • Visibility - Create an initially Enabled visibility modifier for (Picked player) emitting Visibility across Murgul Monsters Intro <gen>
          • Set Murgul_Vis = (Last created visibility modifier)
          • Camera - Pan camera for (Picked player) to (Center of Murgul Monsters Intro <gen>) over 1.00 seconds
      • Game - Display to (All players) for 12.00 seconds the text: |c00FF0303Beware of...
      • Sound - Play Hint <gen>
      • Wait 1.50 seconds
      • Visibility - Destroy Murgul_Vis
      • Trigger - Turn off (This trigger)
 
Level 5
Joined
Apr 22, 2011
Messages
152
So your visiblity modifier IS created but NOT removed right?

Then you should notice that you set that Murgul_Vis variable to the LAST modifier created. I mean, you create modifiers for each player and remove only ONE of them - only the last created.
Try using an array variable.
 
Status
Not open for further replies.
Top