# Height At Point
Grammar — type height at point
Flags —Native
|Function
Returns the height at a point.
# Arguments
int
[ preset::HeightType ] — Typepoint
— Point
Returns — fixed
native fixed WorldHeight(int inType, point inPos);
# 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
// L2971
WorldHeight(c_heightMapGround, UnitGetPosition(autoD2B9032B_var))
// L7921
WorldHeight(c_heightMapGround, UnitGetPosition(autoD60EF79C_var))
// L7932
WorldHeight(c_heightMapGround, gv__4LavaDoodadPositions[autoDFEF9D84_var])
// L7941
WorldHeight(c_heightMapGround, gv__4LavaNydusPositions[autoEB0AC6E5_var])
// L7949
WorldHeight(c_heightMapGround, gv__4LavaFireNydusPositions[autoEA18677F_var])
// L2971
WorldHeight(c_heightMapGround, UnitGetPosition(autoD2B9032B_var))
// L7921
WorldHeight(c_heightMapGround, UnitGetPosition(autoD60EF79C_var))
// L7932
WorldHeight(c_heightMapGround, gv__4LavaDoodadPositions[autoDFEF9D84_var])
// L7941
WorldHeight(c_heightMapGround, gv__4LavaNydusPositions[autoEB0AC6E5_var])
// L7949
WorldHeight(c_heightMapGround, gv__4LavaFireNydusPositions[autoEA18677F_var])
// L1870
WorldHeight(c_heightMapGround, UnitGetPosition(UnitGroupLoopCurrent()))
// L1870
WorldHeight(c_heightMapGround, UnitGetPosition(UnitGroupLoopCurrent()))
# campaigns/swarmstory.sc2campaign
— SwarmCampaignDataHelperLib.galaxy
// L98
WorldHeight(c_heightMapGround, lv_k)
// L98
WorldHeight(c_heightMapGround, lv_t)
// L98
WorldHeight(c_heightMapGround, lv_k)
// L98
WorldHeight(c_heightMapGround, lv_t)
# campaigns/void.sc2campaign
// L2121
WorldHeight(c_heightMapGround, PointWithOffsetPolar(gv_voidCrystals[lv_index].lv_center, gf_VoidCrystalRadiusatAngle(lv_currentAngle, lv_index), lv_currentAngle))
// L2131
WorldHeight(c_heightMapGround, PointWithOffsetPolar(gv_voidCrystals[lv_index].lv_center, gf_VoidCrystalRadiusatAngle(lv_currentAngle, lv_index), lv_currentAngle))
// L2121
WorldHeight(c_heightMapGround, PointWithOffsetPolar(gv_voidCrystals[lv_index].lv_center, gf_VoidCrystalRadiusatAngle(lv_currentAngle, lv_index), lv_currentAngle))
// L2131
WorldHeight(c_heightMapGround, PointWithOffsetPolar(gv_voidCrystals[lv_index].lv_center, gf_VoidCrystalRadiusatAngle(lv_currentAngle, lv_index), lv_currentAngle))
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L4833
WorldHeight(c_heightMapGround, CameraGetTarget(1))
// L4836
WorldHeight(c_heightMapGround, EventPlayerEffectUsedPoint(c_effectLocationTargetPoint))
// L5657
WorldHeight(c_heightMapGround, lv_k)
// L5657
WorldHeight(c_heightMapGround, lv_t)
// L5657
WorldHeight(c_heightMapGround, lv_k)
// L5657
WorldHeight(c_heightMapGround, lv_t)
// L5741
WorldHeight(c_heightMapGround, lv_k)
// L5741
WorldHeight(c_heightMapGround, lv_t)
// L5741
WorldHeight(c_heightMapGround, lv_k)
// L5741
WorldHeight(c_heightMapGround, lv_t)
# mods/frontiers.sc2mod
// L585
WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]))
// L600
WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]))
// L610
WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]))
// L623
WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]))
// L633
WorldHeight(c_heightMapGround, UnitGetPosition(lib6CB3363F_gv_fT_PlayerUnit[lp_playerFiring]))
// L1814
WorldHeight(c_heightMapGround, UnitGetPosition(EventPlayerEffectUsedUnit(c_effectUnitCaster)))
# mods/missionpacks/novacampaign.sc2mod
// L4715
WorldHeight(c_heightMapGround, lv_k)
// L4715
WorldHeight(c_heightMapGround, lv_t)
// L4715
WorldHeight(c_heightMapGround, lv_k)
// L4715
WorldHeight(c_heightMapGround, lv_t)
# mods/novastoryassets.sc2mod
// L555
WorldHeight(c_heightMapGround, PointWithOffsetPolar(lp_point, lp_radius, (lv_i * 45.0)))
// L4480
WorldHeight(c_heightMapGround, CameraGetTarget(1))
// L4483
WorldHeight(c_heightMapGround, EventPlayerEffectUsedPoint(c_effectLocationTargetPoint))
// L555
WorldHeight(c_heightMapGround, PointWithOffsetPolar(lp_point, lp_radius, (lv_i * 45.0)))
// L4480
WorldHeight(c_heightMapGround, CameraGetTarget(1))
// L4483
WorldHeight(c_heightMapGround, EventPlayerEffectUsedPoint(c_effectLocationTargetPoint))
# mods/starcoop/starcoop.sc2mod
// L20970
WorldHeight(c_heightMapGround, lv_k)
// L20970
WorldHeight(c_heightMapGround, lv_t)
// L20970
WorldHeight(c_heightMapGround, lv_k)
// L20970
WorldHeight(c_heightMapGround, lv_t)
// L23333
WorldHeight(c_heightMapGround, lv_k)
// L23333
WorldHeight(c_heightMapGround, lv_t)
// L23333
WorldHeight(c_heightMapGround, lv_k)
// L23333
WorldHeight(c_heightMapGround, lv_t)
// L25312
WorldHeight(c_heightMapGround, lv_effectTargetPoint)
// L25321
WorldHeight(c_heightMapGround, lv_cameraTargetPoint)