• 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] Making the whole map visible and making it not visible

Status
Not open for further replies.
Level 4
Joined
Aug 3, 2008
Messages
58
at the start of my game the map is revealed to all players with the visibility modifier. every 10 seconds i want all the players to lose map visibility for 2 seconds (players still have vision of their units). my problem is when i try to disable the visibility modifier nothing happens. help please
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
JASS:
function ShowMap takes boolean flag returns nothing
    call FogEnable(not flag)
    call FogMaskEnable(not flag)
endfunction

Or...

JASS:
function HideMap takes boolean flag returns nothing
    call FogEnable(flag)
    call FogMaskEnable(flag)
endfunction

:D
 
Status
Not open for further replies.
Top