- Joined
- Jul 26, 2008
- Messages
- 1,009
Alright so I have a fog modifier set up to allow the player to see the entire map:
Now, I want to make it so the player can no longer see the entire map. But I don't seem to be able to do that:
But this does not make the entire map masked for the player. Instead the player still sees everything.
How do I make it so the player is bound to the fog of war again?
JASS:
set DM_Fog[id] = CreateFogModifierRect( GetEnumPlayer(), FOG_OF_WAR_VISIBLE, GetWorldBounds(), true, false )
call FogModifierStart(DM_Fog[id])
Now, I want to make it so the player can no longer see the entire map. But I don't seem to be able to do that:
JASS:
call FogModifierStop(DM_Fog[id])
call DestroyFogModifier(DM_Fog[id])
set DM_Fog[id] = CreateFogModifierRect(pl, FOG_OF_WAR_MASKED, GetWorldBounds(), true, false)
call FogModifierStart(DM_Fog[id])
But this does not make the entire map masked for the player. Instead the player still sees everything.
How do I make it so the player is bound to the fog of war again?