# Get Fog of War Alpha

FlagsNative | Function

Get a player’s Fog of War transparency level. (0 = transparent, 100 = opaque)

# Arguments

  • int — Player

Returns — fixed

native fixed VisGetFoWAlpha(int player);

Category: Visibility / Basic

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:704

    // Implementation
    lv_incrementFrequency = 0.05;
    lv_currentAlpha = VisGetFoWAlpha(1);
    lv_increments = AbsI(FixedToInt((lp_duration / lv_incrementFrequency)));
    lv_alphaIncrement = ((lp_targetAlpha-lv_currentAlpha)/IntToFixed(lv_increments));

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:748

    // Implementation
    lv_incrementFrequency = 0.05;
    lv_currentAlpha = VisGetFoWAlpha(1);
    VisResetFoWAlpha(1);
    lv_targetAlpha = VisGetFoWAlpha(1);

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:750

    lv_currentAlpha = VisGetFoWAlpha(1);
    VisResetFoWAlpha(1);
    lv_targetAlpha = VisGetFoWAlpha(1);
    lv_increments = AbsI(FixedToInt((lp_duration / lv_incrementFrequency)));
    lv_alphaIncrement = ((lv_targetAlpha-lv_currentAlpha)/IntToFixed(lv_increments));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7150


    lv_incrementFrequency = 0.05;
    lv_currentAlpha = VisGetFoWAlpha(lp_player);
    lv_increments = AbsI(FixedToInt((lp_duration / lv_incrementFrequency)));
    lv_alphaIncrement = ((lp_targetAlpha-lv_currentAlpha)/IntToFixed(lv_increments));

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7201


    lv_incrementFrequency = 0.05;
    lv_currentAlpha = VisGetFoWAlpha(lp_player);
    VisResetFoWAlpha(lp_player);
    lv_targetAlpha = VisGetFoWAlpha(lp_player);

mods/starcoop/starcoop.sc2modbase.sc2data/LibCOMI.galaxy:7203

    lv_currentAlpha = VisGetFoWAlpha(lp_player);
    VisResetFoWAlpha(lp_player);
    lv_targetAlpha = VisGetFoWAlpha(lp_player);
    lv_increments = AbsI(FixedToInt((lp_duration / lv_incrementFrequency)));
    lv_alphaIncrement = ((lv_targetAlpha-lv_currentAlpha)/IntToFixed(lv_increments));