HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

underwater blah blah...

06-17-2006, 06:51 PM#1
map-maker
ok first i know how to make the whole underwater effect fine but...is it possible in anyway to make say, half a map have the fog to look underwater and the other half with no fog so as to have it above the water? i cant do the whole unit enters region and add the fog thing because this is a multiplayer map...if someone could help me..ya ^^
06-17-2006, 07:12 PM#2
Tim.
You could do the fog and everything with GetLocalPlayer, so the fog is only created as a player enters the region, and only that one player can see it. This is more of a triggers issue than terrain.
06-17-2006, 07:13 PM#3
Jacek
You could use GetLocalPlayer to display blue fade filter to one player, I think it applies to fog also. Like in water war submerged map

edit: Tim was faster ;]
06-17-2006, 09:41 PM#4
map-maker
im no jass person so mind writing me that small bit of code? you can leave blanks where i would put the region and values and stuff but i dont know how that would work, and you can move this to triggering if you want
06-17-2006, 10:01 PM#5
Jacek
I think this would work:

Trigger:
Fog
Events
Conditions
Collapse Actions
Custom script: if GetLocalPlayer() == Player(1) then
Environment - Set fog to style Linear, z-start 1000.00, z-end 8000.00, density 0.00 and color (100.00%, 100.00%, 100.00%)
Custom script: endif
06-17-2006, 10:05 PM#6
map-maker
and that would set it just for player 1? would i have to make one of those for every player?
06-17-2006, 10:07 PM#7
Jacek
Well you wanted for one player only so this is the solution, for all players you would have to copy it I think.
06-17-2006, 10:11 PM#8
map-maker
i meant multiple players but ok ill copy it