Fade Filters

N(O.O)B

New Member
Reaction score
27
Is there any way to only apply a fade filter to a single person rather than to all people at the same time?
E.g. make the screen fade out to a black screen for Player 1, while Player 2's screen stays the same
 

Ayanami

칼리
Reaction score
288
Is there any way to only apply a fade filter to a single person rather than to all people at the same time?
E.g. make the screen fade out to a black screen for Player 1, while Player 2's screen stays the same

I believe this is possible with the use of JASS. I think I saw it in the forum somewhere before. Hit the search button :thup:
 

Viikuna

No Marlo no game.
Reaction score
265
Yep, you need to use GetLocalPlayer() function, which gives you the player who is playing the game. ( Which means that it gives different player for all the computers )

for example:

[lJASS]if GetLocalPlayer() == Player(0) then[/lJASS]


All the stuff you do here, between if and endif, happens only on Player 0´s computer. ( Player 0 is red player in Jass, blue is Player 1 etc. )

[lJASS]endif[/lJASS]

Just remember that some stuff cant be done locally without messing with the gameplay stuff and handle counters and stuff like that.

If you for example create some unit for only one player, it will case desyncs.

Visual stuff like fadefilters are safe,though.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top