# Get Fog of War Alpha
Flags —
Native
|Function
Get a player’s Fog of War transparency level. (0 = transparent, 100 = opaque)
# Arguments
int
— Player
Returns — fixed
native fixed VisGetFoWAlpha(int player);
# Related
Category: Visibility / Basic
- Reveal Area —
void
— VisRevealArea - Explore/Unexplore Area —
void
— VisExploreArea - Fill Area Visibility —
void
— VisFillArea - Enable/Disable Visibility —
void
— VisEnable - Show/Hide Placement Models —
void
— libNtve_gf_ShowHidePlacementModels - Get Fog of War Alpha —
fixed
— VisGetFoWAlpha - Set Fog of War Alpha —
void
— VisSetFoWAlpha - Reset Fog of War Alpha —
void
— VisResetFoWAlpha - Visibility Is Enabled —
bool
— VisIsEnabled - Point Is Visible For Player —
bool
— VisIsVisibleForPlayer
# Examples
campaigns/voidstory.sc2campaign — base.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.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:748
// Implementation
lv_incrementFrequency = 0.05;
lv_currentAlpha = VisGetFoWAlpha(1);
VisResetFoWAlpha(1);
lv_targetAlpha = VisGetFoWAlpha(1);
campaigns/voidstory.sc2campaign — base.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.sc2mod — base.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.sc2mod — base.sc2data/LibCOMI.galaxy:7201
lv_incrementFrequency = 0.05;
lv_currentAlpha = VisGetFoWAlpha(lp_player);
VisResetFoWAlpha(lp_player);
lv_targetAlpha = VisGetFoWAlpha(lp_player);
mods/starcoop/starcoop.sc2mod — base.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));