| 09-04-2007, 07:48 AM | #1 |
I can use... Trigger: 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%)I can use... Trigger: ![]() Cinematic - Fade out and back in over 2.00 seconds using texture White Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
![]() Cinematic - Apply a filter over 2.00 seconds using Normal blending on texture White Mask, starting with color (100.00%, 100.00%, 100.00%) and 100.00% transparency and ending with color (0.00%, 0.00%, 0.00%) and 0.00% transparencyIn Water Wars submerged, they have a method of making people in the submerged zone, only, see the bluish fog. Does anybody know how they make only certain areas/players have terrain fog/camera filters in 'Water Wars - Submerged'? I need this because I'm making a map with two parallel worlds. |
| 09-04-2007, 08:05 AM | #2 |
I believe you can use GetLocalPlayer() with these functions without causing a desync to make the effects player only. |
| 09-04-2007, 08:20 AM | #3 |
Insert this to your code.. JASS:... if GetLocalPlayer() == <PlayerYouWant> then <Create fade filters, etc,.> // Do anything you want for the player here endif ... Any fade filters that you add inside the if endif will only be shown to the player you want(GetLocalPlayer() == <PlayerYouWant>) This is useful when you need to turn on sounds for a specific player, display text, etc,. Creating units inside the if endif block will cause server splits for obvious reasons. |
| 09-04-2007, 08:44 AM | #4 |
So GetLocalPlayer is acceptable for things like interface? |
| 09-04-2007, 08:47 AM | #5 |
Yes, it is fine with interface stuff like sounds and fade filters. Do not create objects like units, items or anything like that because if you do, it only creates that object for that player and other players won't be able to see the object, causing a server split. |
| 09-04-2007, 08:48 AM | #6 |
So desu ka... anyway, +Rep! You learn something new every day. EDIT! Hehe... Toink I gave you a little rep recently, so if you don't get the rep within two weeks, PM me. |
| 09-04-2007, 08:56 AM | #7 |
I dont do it for the rep :p |
