• 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.

[JASS] Setting/changing fog of war/black mask and visibility

Status
Not open for further replies.

Ardenian

A

Ardenian

I am working on a system to manipulate fog of war.
However, I am not sure what lines to use to change the fog,
as there are fogmodifier and fogstate.

Up to now, I used lines like:
JASS:
call SetFogStateRadiusLoc( tempplayer, FOG_OF_WAR_MASKED, p, 64, true)

I aim to change the fog for each player seperatly.

It does not work though. Before searching for possible mistakes in my script I would like if this is the appropriate method to change visibility, fog of war and black mask.
JASS:
FOG_OF_WAR_FOGGED
FOG_OF_WAR_MASKED
FOG_OF_WAR_VISIBLE


Also, one of my theories is that my hashtable save is messed up.
If I recall right, one hashtable slot can save a real, an integer, a boolean, a string and one handle, correct ?
I can save both unit handle and integer in one slot ?
Can I save a location, a fogstate and a unit handle in one slot ?
 

Ardenian

A

Ardenian

Thank you, but I think I explained it wrong with my example.
From what I see in that code it is about terrain fog.
I don't search for a way to change terrain fog, but the fog of war/black mask.
How do I change visibility/fog of war/black mask without global change, but local ( location based) when no unit is around with sight range ?

I would also like to receive an answer to the hastable save, please
 

Ardenian

A

Ardenian

Ahh, I see, thank you!

If I would like to manipulate the fog for each palyer ( no shared vision between allies), then I would have to loop through the players, right ? Esle I set that boolean there to 'true'
 
Status
Not open for further replies.
Top