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

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