• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

how to fade filter only to player blue and red?

Status
Not open for further replies.
Level 12
Joined
Jul 17, 2013
Messages
544
Hi, player 1 and player 2 have a cut scene in my map when boat becomes 1000 hit points, thats the event.

upload_2020-8-10_18-44-19.png


how can i use this action but only for red and blue?
 
if GetLocalPlayer() == Player(0) then
Cinematic - Fade filter...
endif

Player(0) = Player Red
Player(1) = Player Blue
wait i am bit confused. there is if in the custom script so it means it checks some condition?

upload_2020-8-10_19-55-54.png


so how to use it in this trigger? i would like to use it in place where i alrdy did fade out over and replace it with fade out only for player 1 and blue
 
  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Custom script: if GetLocalPlayer() == Player(0) then
      • Custom script: call CinematicFadeBJ( bj_CINEFADETYPE_FADEOUTIN, 2, "ReplaceableTextures\\CameraMasks\\White_mask.blp", 0, 0, 0, 0 )
      • Custom script: endif
I tried what Warseeker posted. You might wanna try it with someone else also in the game though since I was alone when I tried it.

Simply replace all fade actions with this custom script and change the call function to the desired fade effect.

To find what function to call for your desired fade effect create a new trigger > add the desired action > highlight trigger > edit > convert to custom text > copy paste into custom script
 
wait i am bit confused. there is if in the custom script so it means it checks some condition?

View attachment 361615

so how to use it in this trigger? i would like to use it in place where i alrdy did fade out over and replace it with fade out only for player 1 and blue
  • Custom script: if GetLocalPlayer() == Player(0) or GetLocalPlayer() == Player(1) then
  • Cinematic - Fade out over 2.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with 0.00% transparency
  • Custom script: endif
 
Keep in mind that the solution posted above only works for fading out, the other two fade types call FinishCinematicFadeAfterBJ, which creates a timer, so doing that in a local context will desync.
 
Status
Not open for further replies.
Back
Top