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

[Solved] Advanced Filter Help

Status
Not open for further replies.
Level 16
Joined
Jul 31, 2012
Messages
2,217
Hello, I need someone to tell me

how to make an {advanced filter [White Mask] go from (100,100,100) 100% transparency to (100,100,100) 55% transparency over 5 seconds}
show for only owner of dying unit

Plz I need the jass as it has to be without any changes cuz I'm 0 at Jass

Grateful for the one who helps
 
Level 7
Joined
Nov 15, 2009
Messages
225
JASS:
function DeathMask takes nothing returns nothing

    if IsUnitType(GetTriggerUnit(), UNIT_TYPE_HERO) == true then
        call SetCineFilterTexture("ReplaceableTextures\\CameraMasks\\White_mask.blp")
        call SetCineFilterBlendMode(BLEND_MODE_BLEND)
        call SetCineFilterStartColor(255, 255, 255, 255)
        call SetCineFilterEndColor(255, 255, 255, 140)
        call SetCineFilterDuration(5)
        if GetLocalPlayer() == GetTriggerPlayer() then
            call DisplayCineFilter(true)
        endif
    endif

endfunction
This will display the text only when a hero dies.
If you don't want it, remove the last endif and the line 'if IsUnitType...'

edit: Maker was faster again -,-'
 
Level 16
Joined
Jul 31, 2012
Messages
2,217
[Maker] one question, does this apply to an owner of the player ??? Cuz don't think so
I'm trying the one of seriousenemy now

Edit: the one of Seriousenemy doesn't apply a white mask, it removes the hero owned by the player !!!!!!! :goblin_jawdrop:


Final EDIT:

I rearranged Maker's technique so it is : if GetLocalPlayer() == GetOwningPlayer(GetDyingUnit()) then
and : if GetLocalPlayer() == GetOwningPlayer(GetEnteringUnit()) then (I needed it in another trigger)

and it worked perfectly + rep for the maker :goblin_good_job:

thx again Serious Enemy for helping
 
Status
Not open for further replies.
Top