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

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