# Set Point Height
Grammar — Set the height of p to height
Flags —Native
|Action
Changes the height of a point, relative to the terrain.
# Arguments
point
— Pointfixed
— Height
Returns — void
native void PointSetHeight(point p, fixed inHeight);
# Related
Category: Point / Creation And Modification
- Point From XYZ —
point
— libNtve_gf_PointFromXYZ - Point From XY —
point
— Point - Point From Name —
point
— PointFromName - Move Point —
void
— PointSet - Make Point Face Angle —
void
— PointSetFacing - Set Point Height —
void
— PointSetHeight
# Examples
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3995
// Implementation
lv_point = Point(lp_x, lp_y);
PointSetHeight(lv_point, lp_y2);
return lv_point;
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3282
// Implementation
lv_point = Point(lp_x, lp_y);
PointSetHeight(lv_point, lp_y2);
return lv_point;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:594
else {
lv_noTargetPoint = RegionRandomPoint(RegionCircle(UnitGetPosition(lp_killedUnit), 3.0));
PointSetHeight(lv_noTargetPoint, 10.0);
UnitCreateEffectPoint(lp_killedUnit, "MutatorFireworksMissileCP", lv_noTargetPoint);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:610
else {
lv_noTargetPoint = RegionRandomPoint(RegionCircle(UnitGetPosition(lp_killedUnit), 3.0));
PointSetHeight(lv_noTargetPoint, 10.0);
UnitCreateEffectPoint(lp_killedUnit, "MutatorFireworksMissileCP", lv_noTargetPoint);
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1019
lv_departPoint = UnitGetPosition(lp_damagedUnit);
PointSetFacing(lv_departPoint, AngleBetweenPoints(lv_departPoint, lv_teleportPoint));
PointSetHeight(lv_departPoint, UnitGetHeight(lp_damagedUnit));
libNtve_gf_CreateModelWithPointFacing("DarkTemplarChampionBlinkOut", lv_departPoint);
ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.250000");
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1030
UnitBehaviorAdd(lp_damagedUnit, "MutatorSideStep", lp_damagedUnit, 1);
PointSetFacing(lv_teleportPoint, AngleBetweenPoints(lv_teleportPoint, lv_departPoint));
PointSetHeight(lv_teleportPoint, UnitGetHeight(lp_damagedUnit));
libNtve_gf_CreateModelWithPointFacing("DarkTemplarChampionBlinkIn", lv_teleportPoint);
ActorSend(libNtve_gf_ActorLastCreated(), "SetOpacity 0.250000");