# Set Fog of War Alpha
Flags —
Native
|Action
Override a player’s Fog of War transparency level. (0 = transparent, 100 = opaque)
# Arguments
int
— Playerfixed
— Alpha
Returns — void
native void VisSetFoWAlpha(int player, fixed alpha);
# Related
Category: Visibility / Basic
- [F] —
void
— Reveal Area — ( VisRevealArea ) - [F] —
void
— Explore/Unexplore Area — ( VisExploreArea ) - [F] —
void
— Fill Area Visibility — ( VisFillArea ) - [F] —
void
— Enable/Disable Visibility — ( VisEnable ) - [F] —
void
— Show/Hide Placement Models — ( libNtve_gf_ShowHidePlacementModels ) - [F] —
fixed
— Get Fog of War Alpha — ( VisGetFoWAlpha ) - [F] —
void
— Set Fog of War Alpha — ( VisSetFoWAlpha ) - [F] —
void
— Reset Fog of War Alpha — ( VisResetFoWAlpha ) - [F] —
bool
— Visibility Is Enabled — ( VisIsEnabled ) - [F] —
bool
— Point Is Visible For Player — ( VisIsVisibleForPlayer )
# Examples
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L711
VisSetFoWAlpha(1, lv_currentAlpha)
// L713
VisSetFoWAlpha(1, lp_targetAlpha)
// L753
VisSetFoWAlpha(1, lv_currentAlpha)
// L758
VisSetFoWAlpha(1, lv_currentAlpha)
# mods/starcoop/starcoop.sc2mod
// L7154
VisSetFoWAlpha(lp_player, lv_currentAlpha)
// L7156
VisSetFoWAlpha(lp_player, lp_targetAlpha)
// L7203
VisSetFoWAlpha(lp_player, lv_currentAlpha)
// L7208
VisSetFoWAlpha(lp_player, lv_currentAlpha)
# mods/starcoop/starcoop.sc2mod
// L6164
VisSetFoWAlpha(lv_indexPlayer, 100.0)