# Point From XYZ

Grammar — Point(x, y, y2)
FlagsFunction

Returns a 3D location as a point. This allows you to specify any 3D location on the map as a viable value for a point parameter.

# Arguments

  • fixed — X
  • fixed — Y
  • fixed — Z

Returns — point

point libNtve_gf_PointFromXYZ(
	fixed lp_x,
	fixed lp_y,
	fixed lp_y2,
);

Category: Point / Creation And Modification

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L2845
libNtve_gf_PointFromXYZ(PointGetX(lp_target), PointGetY(lp_target), 15.0)
// L4942
libNtve_gf_PointFromXYZ(PointGetX(lv_target), PointGetY(lv_target), 15.0)
// L2845
libNtve_gf_PointFromXYZ(PointGetX(lp_target), PointGetY(lp_target), 15.0)
// L4942
libNtve_gf_PointFromXYZ(PointGetX(lv_target), PointGetY(lv_target), 15.0)
// L1000
libNtve_gf_PointFromXYZ(168.29, 65.25, 10.02)
// L9960
libNtve_gf_PointFromXYZ(RandomFixed((PointGetX(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetX(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed((PointGetY(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetY(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed(16.0, 24.0))
// L9961
libNtve_gf_PointFromXYZ(RandomFixed((PointGetX(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetX(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed((PointGetY(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetY(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed(16.0, 24.0))
// L9968
libNtve_gf_PointFromXYZ(RandomFixed((PointGetX(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetX(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed((PointGetY(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetY(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed(16.0, 24.0))
// L9969
libNtve_gf_PointFromXYZ(RandomFixed((PointGetX(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetX(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed((PointGetY(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetY(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed(16.0, 24.0))
// L1000
libNtve_gf_PointFromXYZ(168.29, 65.25, 10.02)
// L9960
libNtve_gf_PointFromXYZ(RandomFixed((PointGetX(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetX(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed((PointGetY(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetY(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed(16.0, 24.0))
// L9961
libNtve_gf_PointFromXYZ(RandomFixed((PointGetX(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetX(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed((PointGetY(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetY(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed(16.0, 24.0))
// L9968
libNtve_gf_PointFromXYZ(RandomFixed((PointGetX(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetX(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed((PointGetY(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetY(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed(16.0, 24.0))
// L9969
libNtve_gf_PointFromXYZ(RandomFixed((PointGetX(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetX(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed((PointGetY(UnitGetPosition(lv_helperUnit)) - 4.0), (PointGetY(UnitGetPosition(lv_helperUnit)) + 4.0)), RandomFixed(16.0, 24.0))
// L2728
libNtve_gf_PointFromXYZ(PointGetX(UnitGetPosition(lv_cHOSEN_UNIT)), PointGetY(UnitGetPosition(lv_cHOSEN_UNIT)), 0.5)
// L714
libNtve_gf_PointFromXYZ((PointGetX(libVCST_gf_StoryModeDefaultPosition())+-0.8001), (PointGetY(libVCST_gf_StoryModeDefaultPosition())+-5.0749), (PointGetHeight(libVCST_gf_StoryModeDefaultPosition())+4.3524))
// L2728
libNtve_gf_PointFromXYZ(PointGetX(UnitGetPosition(lv_cHOSEN_UNIT)), PointGetY(UnitGetPosition(lv_cHOSEN_UNIT)), 0.5)
// L714
libNtve_gf_PointFromXYZ((PointGetX(libVCST_gf_StoryModeDefaultPosition())+-0.8001), (PointGetY(libVCST_gf_StoryModeDefaultPosition())+-5.0749), (PointGetHeight(libVCST_gf_StoryModeDefaultPosition())+4.3524))

# campaigns/voidstory.sc2campaign

VoidCampaignStoryLib.galaxy

// L91
libNtve_gf_PointFromXYZ(32.0, 32.0, 8.0)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L661
libNtve_gf_PointFromXYZ(16.0, 16.0, 8.0)
// L2292
libNtve_gf_PointFromXYZ(16.0, 16.0, 8.0)
// L2365
libNtve_gf_PointFromXYZ(16.0, 16.0, 8.0)
// L7350
libNtve_gf_PointFromXYZ(16.0, 16.0, 32.0)
// L7419
libNtve_gf_PointFromXYZ(16.0, 16.0, 8.0)
// L8616
libNtve_gf_PointFromXYZ(16.0, 16.0, 32.0)

# mods/core.sc2mod

NativeLib.galaxy

// L4007
libNtve_gf_PointFromXYZ(PointGetX(lp_point), PointGetY(lp_point), PointGetHeight(lp_point))
// L4015
libNtve_gf_PointFromXYZ(PointGetX(lp_p), PointGetY(lp_p), lp_z)
// L3306
libNtve_gf_PointFromXYZ(PointGetX(lp_point), PointGetY(lp_point), PointGetHeight(lp_point))
// L3314
libNtve_gf_PointFromXYZ(PointGetX(lp_p), PointGetY(lp_p), lp_z)

# mods/missionpacks/novacampaign.sc2mod

LibNCMI.galaxy

// L4622
libNtve_gf_PointFromXYZ(64.0, 68.046, 4.6144)

# mods/missionpacks/novacampaign.sc2mod

LibNCST.galaxy

// L93
libNtve_gf_PointFromXYZ(32.0, 32.0, 8.0)

# mods/novastoryassets.sc2mod

MapScript.galaxy

// L8255
libNtve_gf_PointFromXYZ(64.0, 68.046, 4.6144)
// L8255
libNtve_gf_PointFromXYZ(64.0, 68.046, 4.6144)

# mods/starcoop/starcoop.sc2mod

LibCOMU.galaxy

// L5666
libNtve_gf_PointFromXYZ(PointGetX(lv_targetUnitPoint), PointGetY(lv_targetUnitPoint), 2.0)
// L5670
libNtve_gf_PointFromXYZ(PointGetX(lv_targetUnitPoint), PointGetY(lv_targetUnitPoint), 2.0)