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

Filter

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2010
Messages
480
how do i make a 1 player filter?

i am planning on making a blood filter every time a unit gets hit, but i don't know how to make the filter for only one player. can someone tell me how?
 
View this thread:
http://www.hiveworkshop.com/forums/cinematics-268/tips-tricks-cinema-39854/

And then scroll to the bottom, there is a short description on how to do it properly. :)

  • Set AlphaReal = 100
  • Custom script: if GetLocalPlayer() == Player(0) then
  • Set AlphaReal = 0
  • Custom script: endif
  • Cinematic - Fade out and back in over 2.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with AlphaReal transparency
If players in JASS is confusing for you, then you can do this:
  • Set FilterPlayer = Player 1 (Red)
  • Set AlphaReal = 100
  • Custom script: if GetLocalPlayer() == udg_FilterPlayer then
  • Set AlphaReal = 0
  • Custom script: endif
  • Cinematic - Fade out and back in over 2.00 seconds using texture Black Mask and color (0.00%, 0.00%, 0.00%) with AlphaReal transparency
Just modify "FilterPlayer".
 
Status
Not open for further replies.
Top