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

[Trigger] changing fog for each player?

Status
Not open for further replies.
Level 13
Joined
Dec 13, 2008
Messages
618
im a newbie here:ogre_haosis:

anybody can you share me how to chage fog for each player
without affecting fog of another?

i mean like this;

player 1 inside the dungeon should be have darken fog
player 2 at the sea shore should be like a sunnyday fog
etc...

:goblin_yeah:i thank you in advance.:goblin_yeah:
 
Level 15
Joined
Oct 29, 2012
Messages
1,474
I don't know if that's possible or not ...

If each player has his own zone of playing...

Create a region in his base, double-click it then change region...
For example you create a region around Dungeon and double-click it then change weather/fog

At the sea shore, create some regions ( even 5 or 6 or more ) then double-click all of them and change fog/weather

That's all I can help :p
 
Level 26
Joined
Aug 18, 2009
Messages
4,097
Environment - Set Fog, put that inside a local block like this:

  • Custom script: if (GetLocalPlayer() == udg_player) then
  • Environment - Set Fog...
  • Custom script: endif
assuming that udg_player (without the udg_ prefix in GUI) is a player variable pointing to the player whose fog you want to change.
 
Status
Not open for further replies.
Top