# Set Height

Grammar — SetHeight height
FlagsFunction

Constructs and returns a SetHeight actor message based on the parameters. This message sets the actor at a height relative to the terrain, rather than specifying an absolute Z axis value. It will only work on actors that have bearings, such as model actors or doodad actors.

# Arguments

  • fixed — Height

Returns — string<actormsg>

string libNtve_gf_SetHeight(fixed lp_height);

Category: Actor / Message Constructors

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:7201

        lv_beams[lv_index] = libNtve_gf_ActorLastCreated();
        ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(1.0, 1.0, 1.0, 0.0));
        ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(gv_c_PlaneHeight));
        lv_pos = PointWithOffset(lv_pos, lv_beamUnit, 0.0);
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:7257

    lv_region = RegionCircle(lv_center, 3.0);
    libNtve_gf_CreateModelAtPoint("ProtossLargeUnitDeath", lv_center);
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lv_height));
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(2.0, 2.0, 2.0, 0.0));
    libNtve_gf_KillModel(libNtve_gf_ActorLastCreated());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:7263

    for (auto16A612AD_i = 1; auto16A612AD_i <= auto16A612AD_n; auto16A612AD_i += 1) {
        libNtve_gf_CreateModelAtPoint("ProtossLargeUnitDeath", RegionRandomPoint(lv_region));
        ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lv_height));
        libNtve_gf_KillModel(libNtve_gf_ActorLastCreated());
    }

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4166

        gv_armoryOutHourse = libNtve_gf_ActorLastCreated();
        ActorSend(gv_armoryOutHourse, libNtve_gf_SetFacing(90.0));
        ActorSend(gv_armoryOutHourse, libNtve_gf_SetHeight(0.4));
        Wait(15.0, c_timeReal);
        libNtve_gf_CreateModelAtPoint("TaurenFlyingOutHouse", PointFromId(1044));

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4171

        gv_bridgeOutHourse = libNtve_gf_ActorLastCreated();
        ActorSend(gv_bridgeOutHourse, libNtve_gf_SetFacing(150.0));
        ActorSend(gv_bridgeOutHourse, libNtve_gf_SetHeight(4.0));
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:7201

        lv_beams[lv_index] = libNtve_gf_ActorLastCreated();
        ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(1.0, 1.0, 1.0, 0.0));
        ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(gv_c_PlaneHeight));
        lv_pos = PointWithOffset(lv_pos, lv_beamUnit, 0.0);
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:7257

    lv_region = RegionCircle(lv_center, 3.0);
    libNtve_gf_CreateModelAtPoint("ProtossLargeUnitDeath", lv_center);
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lv_height));
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetScale(2.0, 2.0, 2.0, 0.0));
    libNtve_gf_KillModel(libNtve_gf_ActorLastCreated());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2mapMapScript.galaxy:7263

    for (auto16A612AD_i = 1; auto16A612AD_i <= auto16A612AD_n; auto16A612AD_i += 1) {
        libNtve_gf_CreateModelAtPoint("ProtossLargeUnitDeath", RegionRandomPoint(lv_region));
        ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lv_height));
        libNtve_gf_KillModel(libNtve_gf_ActorLastCreated());
    }

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4166

        gv_armoryOutHourse = libNtve_gf_ActorLastCreated();
        ActorSend(gv_armoryOutHourse, libNtve_gf_SetFacing(90.0));
        ActorSend(gv_armoryOutHourse, libNtve_gf_SetHeight(0.4));
        Wait(15.0, c_timeReal);
        libNtve_gf_CreateModelAtPoint("TaurenFlyingOutHouse", PointFromId(1044));

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4171

        gv_bridgeOutHourse = libNtve_gf_ActorLastCreated();
        ActorSend(gv_bridgeOutHourse, libNtve_gf_SetFacing(150.0));
        ActorSend(gv_bridgeOutHourse, libNtve_gf_SetHeight(4.0));
    }

campaigns/void.sc2campaignbase.sc2maps/maps/campaign/void/paiur05.sc2map/MapScript.galaxy:444

    ActorSend(lv_infestation, libNtve_gf_SetScale(0.5, 0.5, 0.5, 0.0));
    ActorSend(lv_infestation, libNtve_gf_SetFacing(libNtve_gf_RandomAngle()));
    ActorSend(lv_infestation, libNtve_gf_SetHeight(0));
    while (!((UnitIsAlive(lp_bunker) == false))) {
        Wait(0.5, c_timeGame);

campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur05.sc2mapMapScript.galaxy:444

    ActorSend(lv_infestation, libNtve_gf_SetScale(0.5, 0.5, 0.5, 0.0));
    ActorSend(lv_infestation, libNtve_gf_SetFacing(libNtve_gf_RandomAngle()));
    ActorSend(lv_infestation, libNtve_gf_SetHeight(0));
    while (!((UnitIsAlive(lp_bunker) == false))) {
        Wait(0.5, c_timeGame);

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

    lv_a = libNtve_gf_ActorLastCreated();
    ActorSend(lv_a, libNtve_gf_ActorMsg1("SetPositionH", libNtve_gf_ConvertXYToString(PointGetX(lp_position), PointGetY(lp_position))));
    ActorSend(lv_a, libNtve_gf_SetHeight(PointGetHeight(lp_position)));
    return lv_a;
}

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

    // Implementation
    libNtve_gf_CreateActorAtPoint("LookAtTarget", lp_point);
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lp_z));
    return libNtve_gf_ActorLastCreated();
}

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

    lv_a = libNtve_gf_ActorLastCreated();
    ActorSend(lv_a, libNtve_gf_ActorMsg1("SetPositionH", libNtve_gf_ConvertXYToString(PointGetX(lp_position), PointGetY(lp_position))));
    ActorSend(lv_a, libNtve_gf_SetHeight(PointGetHeight(lp_position)));
    return lv_a;
}

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

    // Implementation
    libNtve_gf_CreateActorAtPoint("LookAtTarget", lp_point);
    ActorSend(libNtve_gf_ActorLastCreated(), libNtve_gf_SetHeight(lp_z));
    return libNtve_gf_ActorLastCreated();
}

mods/heromods/auriel.stormmodbase.stormdata/LibHAUR.galaxy:1130

        ActorSend(libNtve_gf_MainActorofUnit(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer]), libNtve_gf_SetOpacity(0.0, 0));
        ActorSend(libNtve_gf_MainActorofUnit(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer]), libNtve_gf_SetScale(2.0, 2.0, 4.5, 0.0));
        ActorSend(libNtve_gf_MainActorofUnit(libHAUR_gv_heroAurielResurrectSpirit[lv_deadPlayer]), libNtve_gf_SetHeight(1.0));
    }
    else if (autoDD7969E0_val == "HeroMurky") {

mods/warcoop/warclassic.sc2modbase.sc2data/TriggerLibs/WarClassic.galaxy:269

    lv_a = libNtve_gf_ActorLastCreated();
    ActorSend(lv_a, libNtve_gf_ActorMsg1("SetPositionH", libNtve_gf_ConvertXYToString(PointGetX(lp_position), PointGetY(lp_position))));
    ActorSend(lv_a, libNtve_gf_SetHeight(PointGetHeight(lp_position)));
    return lv_a;
}