• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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 16
Joined
Oct 12, 2008
Messages
1,570
Ok, but what function to use then?
And what is local player actually? (yeah ima noob on Jass)
Can you please write out the whole thing i would have to use?
Tnx!:grin:

(I will use JASS, that would be better i think)
 
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