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

Status
Not open for further replies.
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