• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Fade Filter

Status
Not open for further replies.
Level 16
Joined
Oct 12, 2008
Messages
1,570
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:
 
Level 12
Joined
Mar 16, 2006
Messages
992
There's always localplayer, but I don't know using it would cause a split or not with a filter.
 
Level 9
Joined
Apr 3, 2008
Messages
700
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
 
Level 9
Joined
Apr 3, 2008
Messages
700
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
 
Level 16
Joined
Oct 12, 2008
Messages
1,570
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.
Top