p.s. I've read about the "getlocalplayer()" but i've lost the thread; does this also mean that i have to tuck in jass codes on triggers?
Positive.
You're going to need these functions.
Well, at least the GUI action
Video - Fade Filter and what connects to it are not local-friendly. The functions you linked mimic Blizzard's way of applying the filter.
For simplicity for a GUI user, create additional variables:
playerVar (player)
fadeType (integer)
FADE_TYPE_IN (integer, value=0)
FADE_TYPE_OUT (integer, value=1)
FADE_TYPE_OUTIN (integer, value=2)
duration (real)
texture (string)
FILTER_TEXTURE_WHITE (string, value="ReplaceableTextures\CameraMasks\White_mask.blp")
FILTER_TEXTURE_BLACK (string, value="ReplaceableTextures\CameraMasks\Black_mask.blp")
FILTER_TEXTURE_HAZE (string, value="ReplaceableTextures\CameraMasks\HazeFilter_mask.blp")
FILTER_TEXTURE_GROUND_FOG (string, value="ReplaceableTextures\CameraMasks\GroundFog_mask.blp")
FILTER_TEXTURE_HAZE_AND_FOG (string, value="ReplaceableTextures\CameraMasks\HazeAndFogFilter_Mask.blp")
FILTER_TEXTURE_SLASH (string, value="ReplaceableTextures\CameraMasks\DiagonalSlash_mask.blp")
FILTER_TEXTURE_DREAM (string, value="ReplaceableTextures\CameraMasks\DreamFilter_Mask.blp")
FILTER_TEXTURE_SCOPE (string, value="ReplaceableTextures\CameraMasks\Scope_Mask.blp")
FILTER_TEXTURE_POW (string, value="ReplaceableTextures\CameraMasks\SpecialPowMask.blp")
FILTER_TEXTURE_SPLAT (string, value="ReplaceableTextures\CameraMasks\SpecialSplatMask.blp")
FILTER_TEXTURE_PANDA (string, value="ReplaceableTextures\CameraMasks\Panda-n-Cub.blp")
red (real)
green (real)
blue (real)
transparency (real)
Then write where you want to deploy the filter:
-
Custom Script: call CinematicFadeForPlayer (udg_playerVar, udg_fadeType, udg_duration, udg_texture, udg_red, udg_green, udg_blue, udg_transparency)
and before that line, you set all the variables with
Set Variable-actions to your desired values.