• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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:
Level 13
Joined
Nov 4, 2006
Messages
1,239
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
 
Level 16
Joined
Jun 25, 2008
Messages
1,043
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.
Top