• 🏆 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!
  • ✅ The POLL for Hive's Texturing Contest #33 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!

Fading for localpllayer

Status
Not open for further replies.
Replace Player(0) with your player and CinematicFadeBJ with your fading.
I hope you know some JASS because I dont feel like explaining everything now =/

JASS:
function YourFunction takes nothing returns nothing
    if GetLocalPlayer() == Player(0) then
        call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 0, 0, 0, 0 )
    endif
endfunction
 
Put this into your Custom Script Section (in the trigger editor click on the small map icon next to your map name)
JASS:
function FadeForPlayer takes player p returns nothing
    if GetLocalPlayer() == p then
        call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 0, 0, 0, 0 )
    endif
endfunction

and now to call the function do it like this:
  • Sample
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set TempPlayer = Player 1 (Red)
      • Custom script: call FadeForPlayer(udg_TempPlayer)
But don't forget to change your Fade filter.
Just create one in GUI and do Convert to JASS then copy and paste your fade filter.
 
Status
Not open for further replies.
Top