Fade Filter

Status
Not open for further replies.
Level 16
Joined
Oct 12, 2008
Messages
1,569
Hi people,,

I got a little quick question,,
Is there a way to make a fade filter for only one player?
Cause now, when i use fade filter, i cant set a player anywhere, so it is for all players, right?
Is there maybe some JASS way of doing it?

Tnx! Yixx,,:grin:
 
If you use WEU you can make it on GUI.
If you don't you have to Jass it.
  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Local player) Equal to (Triggering player)
    • Then - Actions
    • Else - Actions
JASS:
    if GetLocalPlayer() == GetTriggerPlayer() then
        <...>
    endif
 
I really dunno how to explain what is local player :D
When you use a local player, the actions, that yyou put in if-then-else with local player, will be applied only to him.
For example, you can locally create leaderboard, multiboards, timers, and so on.
The script I posted means that the actions inside if-then-else will be applied only to triggering player.
JASS:
 if GetLocalPlayer() == GetTriggerPlayer() then
 
So you are certain that it will only apply for that player then? Cause i dont think it will make any difference, since you cant set a player anywhere, not even in the JASS function for FadeFilter,,
(yeah i looked up in Blizzard.j)

Can you think of any other way to make the screen black over time for only 1 player??
 
Status
Not open for further replies.
Back
Top