• 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.

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