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

[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