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

Unable to Remove Visibility Modifier

Status
Not open for further replies.
Level 6
Joined
Sep 11, 2006
Messages
172
Hello Hive,

Been working on a map lately where I am using a visibility modifier at map initialization for a small region. Later, I have tried to remove the modifier by disabling, destroying, etc and by putting a new black mask modifier over the region, which only serves to re-emit visibility across the region. I have also tried assigning variables to the modifiers for removal, but this has not helped me.
 
Level 37
Joined
Mar 6, 2006
Messages
9,240
I tested with this and it worked fine:

  • Untitled Trigger 012
    • Events
      • Player - Player 1 (Red) skips a cinematic sequence
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • i2 Equal to 0
        • Then - Actions
          • Visibility - Create an initially Enabled visibility modifier for Player 1 (Red) emitting Visibility across Region 000 <gen>
          • Set visi = (Last created visibility modifier)
          • Set i2 = 1
        • Else - Actions
          • Visibility - Disable visi
          • Set i2 = 0
 
Level 6
Joined
Sep 11, 2006
Messages
172
Ah, I have to create two visibility modifiers for the region. One for visibility and one for black mask. I cannot enable or disable a modifier immediately after its creation. I have to set a wait action first. Is this just my map?

Well, whether or not its normal, I have achieved the desired result. Thank you for looking into it ^^
 
Status
Not open for further replies.
Top