Fog for only one Player

Status
Not open for further replies.
Level 5
Joined
Feb 11, 2009
Messages
34
I would like some help making a trigger which will set fog for only one player.
Example Event: Unit - A unit enters Region
And then set fog for Owner of Triggering Unit
I prefer GUI but I don't mind if it's JASS.

Thank you! +rep
 
Last edited:
you don't need custom script

  • Events
    • Player - Player 1 (Red) types a chat message containing -fog as an exact match
    • Player - Player 2 (blue) types a chat message containing -fog as an exact match
  • ...
  • Conditions
  • Actions
    • Visibility - Create an initially enabled visibility modifier for (Triggering Player) emitting fog of war across (Playable map area)
you can change "fog of war" to visibility, black mask, etc., just check the trigger action
 
Seas =)

I want edit the Question with another, nearly same, question if allowed (so I dont need to open a second topic for this)

What if a player type: -fog ? what custom script should i take then?

  • Untitled Trigger 001
    • Events
      • Player - Player 1 (Red) types a chat message containing -fog as An exact match
      • <you need to make an event for every player.>
    • Conditions
    • Actions
      • Custom script: if (GetLocalPlayer()) == (GetTriggerPlayer()) then
      • Environment - Set fog to style Linear, z-start 0.00, z-end 2000.00, density 1.00 and color (100.00%, 100.00%, 100.00%)
      • Custom script: endif
 
Status
Not open for further replies.
Back
Top