# Set Position H

Grammar — SetPositionH x y height
FlagsFunction

Constructs and returns a SetPositionH actor message based on the parameters. This message will set the 2D position of an actor to the X,Y parameters, while adjusting its height relative to the terrain determined by the Height parameter.

# Arguments

  • fixed — X
  • fixed — Y
  • fixed — Height

Returns — string<actormsg>

string libNtve_gf_SetPositionH(
	fixed lp_x,
	fixed lp_y,
	fixed lp_height,
);

Category: Actor / Message Constructors

# Examples

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

    ActorCreate(null, lp_actor, null, null, null);
    lv_a = libNtve_gf_ActorLastCreated();
    ActorSend(lv_a, libNtve_gf_SetPositionH(PointGetX(lp_position), PointGetY(lp_position), PointGetHeight(lp_position)));
    return lv_a;
}

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

    ActorCreate(null, lp_actor, null, null, null);
    lv_a = libNtve_gf_ActorLastCreated();
    ActorSend(lv_a, libNtve_gf_SetPositionH(PointGetX(lp_position), PointGetY(lp_position), PointGetHeight(lp_position)));
    return lv_a;
}