# Show/Hide Environment
Grammar — showHide environmentType
Flags —Native
|Action
Shows or hides graphics associated with the game environment. This includes terrain, doodads, and water.
# Arguments
int
[ preset::HeightType2 ] — Environment Typebool
[ preset::ShowHideOption ] — Show/Hide
Returns — void
native void EnvironmentShow(int inType, bool inShow);
# Related
Category: Environment / Terrain And Water
- [F] —
void
— Show/Hide Environment — ( EnvironmentShow ) - [F] —
fixed
— Height At Point — ( WorldHeight ) - [F] —
string
[ gamelink::TerrainTex ] — Terrain Texture At Point — ( TerrainTexture ) - [F] —
int
— Cliff Level Of Point (Integer) — ( CliffLevel ) - [F] —
fixed
— Cliff Level Of Point (Real) — ( PointPathingCliffLevel ) - [F] —
bool
— Line Crosses Cliff — ( CrossCliff ) - [F] —
bool
— Terrain Has Custom Attribute — ( HasCustomCellAttribute ) - [F] —
void
— Show/Hide Terrain — ( TerrainShowRegion ) - [F] —
void
— Set Water State — ( WaterSetState ) - [F] —
void
— Pause/Unpause Water Transition — ( WaterPause )
# Examples
# campaigns/liberty.sc2campaign
// L9896
EnvironmentShow(c_environmentTerrain, false)
// L9897
EnvironmentShow(c_environmentDoodads, false)
// L9898
EnvironmentShow(c_environmentWater, false)
// L7126
EnvironmentShow(c_environmentDoodads, false)
// L7127
EnvironmentShow(c_environmentWater, false)
// L7128
EnvironmentShow(c_environmentTerrain, false)
// L7154
EnvironmentShow(c_environmentDoodads, true)
// L7155
EnvironmentShow(c_environmentWater, true)
// L7156
EnvironmentShow(c_environmentTerrain, true)
// L5411
EnvironmentShow(c_environmentDoodads, false)
// L5412
EnvironmentShow(c_environmentTerrain, false)
// L5413
EnvironmentShow(c_environmentWater, false)
// L5494
EnvironmentShow(c_environmentAll, true)
// L6715
EnvironmentShow(c_environmentAll, false)
// L9896
EnvironmentShow(c_environmentTerrain, false)
// L9897
EnvironmentShow(c_environmentDoodads, false)
// L9898
EnvironmentShow(c_environmentWater, false)
// L7126
EnvironmentShow(c_environmentDoodads, false)
// L7127
EnvironmentShow(c_environmentWater, false)
// L7128
EnvironmentShow(c_environmentTerrain, false)
// L7154
EnvironmentShow(c_environmentDoodads, true)
// L7155
EnvironmentShow(c_environmentWater, true)
// L7156
EnvironmentShow(c_environmentTerrain, true)
// L5411
EnvironmentShow(c_environmentDoodads, false)
// L5412
EnvironmentShow(c_environmentTerrain, false)
// L5413
EnvironmentShow(c_environmentWater, false)
// L5494
EnvironmentShow(c_environmentAll, true)
// L6715
EnvironmentShow(c_environmentAll, false)
// L5538
EnvironmentShow(c_environmentAll, true)
// L12007
EnvironmentShow(c_environmentTerrain, false)
// L12146
EnvironmentShow(c_environmentTerrain, true)
// L6326
EnvironmentShow(c_environmentAll, true)
// L6917
EnvironmentShow(c_environmentAll, false)
// L7647
EnvironmentShow(c_environmentAll, false)
// L7658
EnvironmentShow(c_environmentAll, true)
// L7809
EnvironmentShow(c_environmentAll, true)
// L5538
EnvironmentShow(c_environmentAll, true)
// L12007
EnvironmentShow(c_environmentTerrain, false)
// L12146
EnvironmentShow(c_environmentTerrain, true)
// L6326
EnvironmentShow(c_environmentAll, true)
// L6917
EnvironmentShow(c_environmentAll, false)
// L7647
EnvironmentShow(c_environmentAll, false)
// L7658
EnvironmentShow(c_environmentAll, true)
// L7809
EnvironmentShow(c_environmentAll, true)
# campaigns/swarmstory.sc2campaign
// L8830
EnvironmentShow(c_environmentAll, false)
# campaigns/void.sc2campaign
// L4032
EnvironmentShow(c_environmentWater, false)
// L4098
EnvironmentShow(c_environmentWater, true)
// L4225
EnvironmentShow(c_environmentWater, true)
// L4443
EnvironmentShow(c_environmentWater, false)
// L6721
EnvironmentShow(c_environmentTerrain, true)
// L6722
EnvironmentShow(c_environmentWater, true)
// L6723
EnvironmentShow(c_environmentDoodads, true)
// L4032
EnvironmentShow(c_environmentWater, false)
// L4098
EnvironmentShow(c_environmentWater, true)
// L4225
EnvironmentShow(c_environmentWater, true)
// L4443
EnvironmentShow(c_environmentWater, false)
// L6721
EnvironmentShow(c_environmentTerrain, true)
// L6722
EnvironmentShow(c_environmentWater, true)
// L6723
EnvironmentShow(c_environmentDoodads, true)
# mods/missionpacks/novacampaign.sc2mod
// L1885
EnvironmentShow(c_environmentAll, false)
# mods/novastoryassets.sc2mod
// L8148
EnvironmentShow(c_environmentAll, false)
// L8148
EnvironmentShow(c_environmentAll, false)