# Point With Z Offset

Grammarp offset by z height
FlagsFunction

Returns a point with the X and Y position of the specified point, and Z position of the specified Z.

# Arguments

  • point — Point
  • fixed — Z

Returns — point

point libNtve_gf_PointWithZOffset(point lp_p, fixed lp_z);

Category: Point / Offsets

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L4705
libNtve_gf_PointWithZOffset(lv_spawnLoc, gv_c_PlaneHeight)
// L7117
libNtve_gf_PointWithZOffset(lv_spawnLoc, gv_c_PlaneHeight)
// L26409
libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorRaynor)), 0.5, UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynor))), 0.5)
// L26563
libNtve_gf_PointWithZOffset(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorTychus)), 0.7)
// L26677
libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorTychus)), 0.6, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorTychus)) - 15.0)), 0.65)
// L28660
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28793
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28804
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28815
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28935
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28951
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28953
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L4366
libNtve_gf_PointWithZOffset(UnitGetPosition(UnitFromId(430)), 0.7)
// L4705
libNtve_gf_PointWithZOffset(lv_spawnLoc, gv_c_PlaneHeight)
// L7117
libNtve_gf_PointWithZOffset(lv_spawnLoc, gv_c_PlaneHeight)
// L26409
libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorRaynor)), 0.5, UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorRaynor))), 0.5)
// L26563
libNtve_gf_PointWithZOffset(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorTychus)), 0.7)
// L26677
libNtve_gf_PointWithZOffset(PointWithOffsetPolar(UnitGetPosition(gf_ActorUnit(ge_ActorID_ActorTychus)), 0.6, (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorTychus)) - 15.0)), 0.65)
// L28660
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28793
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28804
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28815
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28935
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28951
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L28953
libNtve_gf_PointWithZOffset(PointFromId(676), 0.8)
// L4366
libNtve_gf_PointWithZOffset(UnitGetPosition(UnitFromId(430)), 0.7)
// L5812
libNtve_gf_PointWithZOffset(PointFromId(36), 0.0)
// L8870
libNtve_gf_PointWithZOffset(UnitGetPosition(EventUnit()), 12.0)
// L9757
libNtve_gf_PointWithZOffset(PointFromId(4148), 8.0)
// L3007
libNtve_gf_PointWithZOffset(UnitGetPosition(gv_objectiveDummyHelper), 2.5)
// L5812
libNtve_gf_PointWithZOffset(PointFromId(36), 0.0)
// L8870
libNtve_gf_PointWithZOffset(UnitGetPosition(EventUnit()), 12.0)
// L9757
libNtve_gf_PointWithZOffset(PointFromId(4148), 8.0)
// L3007
libNtve_gf_PointWithZOffset(UnitGetPosition(gv_objectiveDummyHelper), 2.5)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L9274
libNtve_gf_PointWithZOffset(libSwaC_gv_center, libSwaC_gv_zSC_ARMYEVOLUTIONSETHEIGHT)
// L9304
libNtve_gf_PointWithZOffset(libSwaC_gv_center, libSwaC_gv_zSC_ARMYEVOLUTIONSETHEIGHT)

# campaigns/void.sc2campaign

MapScript.galaxy

// L1026
libNtve_gf_PointWithZOffset(UnitGetAttachmentPoint(gv_uNITWarCouncilSet00, "Pos_EvolutionMaster"), (PointGetHeight(UnitGetAttachmentPoint(gv_uNITWarCouncilSet00, "Pos_EvolutionMaster")) + 0.03))
// L1026
libNtve_gf_PointWithZOffset(UnitGetAttachmentPoint(gv_uNITWarCouncilSet00, "Pos_EvolutionMaster"), (PointGetHeight(UnitGetAttachmentPoint(gv_uNITWarCouncilSet00, "Pos_EvolutionMaster")) + 0.03))

# mods/heroesdata.stormmod

GameLib.galaxy

// L17379
libNtve_gf_PointWithZOffset(lv_deadUnitsOriginalLocation, 2.0)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L12699
libNtve_gf_PointWithZOffset(UnitGetPosition(lv_chosenTarget), 2.0)
// L12711
libNtve_gf_PointWithZOffset(UnitGetPosition(lv_chosenTarget), 2.0)
// L12724
libNtve_gf_PointWithZOffset(lv_pDDTarget, 2.0)
// L12728
libNtve_gf_PointWithZOffset(lv_pDDTarget, 2.0)
// L12733
libNtve_gf_PointWithZOffset(lv_pDDTarget, 2.0)
// L12737
libNtve_gf_PointWithZOffset(lv_pDDTarget, 2.0)
// L12741
libNtve_gf_PointWithZOffset(lv_pDDTarget, 2.0)
// L12754
libNtve_gf_PointWithZOffset(UnitGetPosition(lv_chosenTarget), 2.0)