# Height Of Point
Grammar — Height of p
Flags —Native
|Function
Returns the height of the specified point, relative to the terrain, as a real value. To place a point with a non-zero height in the Terrain Editor, use the Three Dimensional point type.
# Arguments
point
— Point
Returns — fixed
native fixed PointGetHeight(point p);
# Related
Category: Point / Measurements
- [F] —
fixed
— X Of Point — ( PointGetX ) - [F] —
fixed
— Y Of Point — ( PointGetY ) - [F] —
fixed
— Facing Angle Of Point — ( PointGetFacing ) - [F] —
fixed
— Height Of Point — ( PointGetHeight ) - [F] —
fixed
— Angle Between Points — ( AngleBetweenPoints ) - [F] —
fixed
— Distance Between Points — ( DistanceBetweenPoints ) - [F] —
fixed
— Distance Squared Between Points — ( DistanceSquaredBetweenPoints ) - [F] —
bool
— Point Is In Region — ( RegionContainsPoint )
# Examples
# campaigns/swarm.sc2campaign
// L165
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation"))
// L167
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation 01"))
// L151
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETDusk00, "Pos_SetLocation"))
// L145
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETSpace02, "Pos_SetLocation"))
// L141
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETZerus00, "Pos_SetLocation"))
// L144
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETZerus00, "Pos_SetLocation"))
// L165
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation"))
// L167
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETKaldir, "Pos_SetLocation 01"))
// L151
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETDusk00, "Pos_SetLocation"))
// L145
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETSpace02, "Pos_SetLocation"))
// L141
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETZerus00, "Pos_SetLocation"))
// L144
PointGetHeight(UnitGetAttachmentPoint(gv_uNITSETZerus00, "Pos_SetLocation"))
# campaigns/swarmstory.sc2campaign
// L7747
PointGetHeight(lv_eggLocation)
// L8930
PointGetHeight(lv_offset)
// L8955
PointGetHeight(lv_offset)
# campaigns/void.sc2campaign
// L714
PointGetHeight(libVCST_gf_StoryModeDefaultPosition())
// L1026
PointGetHeight(UnitGetAttachmentPoint(gv_uNITWarCouncilSet00, "Pos_EvolutionMaster"))
// L714
PointGetHeight(libVCST_gf_StoryModeDefaultPosition())
// L1026
PointGetHeight(UnitGetAttachmentPoint(gv_uNITWarCouncilSet00, "Pos_EvolutionMaster"))
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L3801
PointGetHeight(lp_location)
# campaigns/voidstory.sc2campaign
// L1190
PointGetHeight(lp_point)
// L1199
PointGetHeight(lp_location)
// L1200
PointGetHeight(lp_location)
# mods/core.sc2mod
// L399
PointGetHeight(lp_position)
// L414
PointGetHeight(lp_position)
// L4007
PointGetHeight(lp_point)
// L275
PointGetHeight(lp_position)
// L297
PointGetHeight(lp_position)
// L3306
PointGetHeight(lp_point)
# mods/missionpacks/novacampaign.sc2mod
// L1083
PointGetHeight(lp_point)
// L1091
PointGetHeight(lp_location)
// L1092
PointGetHeight(lp_location)
# mods/voidprologue.sc2mod
// L3152
PointGetHeight(lp_location)
# mods/warcoop/warclassic.sc2mod
// L269
PointGetHeight(lp_position)