# Set Point Height

Grammar — Set the height of p to height
FlagsNative | Action

Changes the height of a point, relative to the terrain.

# Arguments

  • point — Point
  • fixed — Height

Returns — void

native void PointSetHeight(point p, fixed inHeight);

Category: Point / Creation And Modification

# Examples

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3995

    // Implementation
    lv_point = Point(lp_x, lp_y);
    PointSetHeight(lv_point, lp_y2);
    return lv_point;
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:3282

    // Implementation
    lv_point = Point(lp_x, lp_y);
    PointSetHeight(lv_point, lp_y2);
    return lv_point;
}

mods/starcoop/starcoop.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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");