# Height At Point

Grammartype height at point
FlagsNative | Function

Returns the height at a point.

# Arguments

  • int [ preset::HeightType ] — Type
  • point — Point

Returns — fixed

native fixed WorldHeight(int inType, point inPos);

Category: Environment / Terrain And Water

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

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

MapScript.galaxy

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

Lib6CB3363F.galaxy

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

LibNCMI.galaxy

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

MapScript.galaxy

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

LibCOMI.galaxy

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