# Set Fog of War Alpha

FlagsNative | Action

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

# Arguments

  • int — Player
  • fixed — Alpha

Returns — void

native void VisSetFoWAlpha(int player, fixed alpha);

Category: Visibility / Basic

# 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

LibCOMI.galaxy

// 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

LibCOMU.galaxy

// L6164
VisSetFoWAlpha(lv_indexPlayer, 100.0)