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

FogModifier delay problem

Status
Not open for further replies.
Level 17
Joined
Nov 13, 2006
Messages
1,814
how to solve this?
JASS:
    call SaveFogModifierHandle(udg_Inv_Slots, 0, 100 + pl, CreateFogModifierRect(Player(pl - 1), FOG_OF_WAR_VISIBLE, rect, true, false))
    call FogModifierStart(LoadFogModifierHandle(udg_Inv_Slots, 0, 100 + pl))

this need aprox 2 sec until will be the area visible coz this do something fade thing, so not instantly visible the area...

1st i thought disable fog of war/black mask and then create the fogmodifier but disable/enable things work for all player :/
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
but disable/enable things work for all player :/
Hey look :p

7. Fog of war and black mask, color, visibile for 1 player only?

Question - this cause desyncronization?
Answer - Yes

  • Test 1
    • Events
      • Player - Player 1 (Red) types a chat message containing test as An exact match
    • Conditions
    • Actions
      • Set Player = (Triggering player)
      • Custom script: if GetLocalPlayer() == udg_Player then
      • Visibility - Disable fog of war
      • Visibility - Disable black mask
      • Custom script: endif
 
Status
Not open for further replies.
Top