# Point From XYZ
Grammar — Point(x, y, y2)
Flags —Function
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
— Xfixed
— Yfixed
— Z
Returns — point
point libNtve_gf_PointFromXYZ(
fixed lp_x,
fixed lp_y,
fixed lp_y2,
);
# Related
Category: Point / Creation And Modification
- [F] —
point
— Point From XYZ — ( libNtve_gf_PointFromXYZ ) - [F] —
point
— Point From XY — ( Point ) - [F] —
point
— Point From Name — ( PointFromName ) - [F] —
void
— Move Point — ( PointSet ) - [F] —
void
— Make Point Face Angle — ( PointSetFacing ) - [F] —
void
— Set Point Height — ( PointSetHeight )
# Examples
# campaigns/liberty.sc2campaign
// 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
// L91
libNtve_gf_PointFromXYZ(32.0, 32.0, 8.0)
# campaigns/voidstory.sc2campaign
// 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
// 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
// L4622
libNtve_gf_PointFromXYZ(64.0, 68.046, 4.6144)
# mods/missionpacks/novacampaign.sc2mod
// L93
libNtve_gf_PointFromXYZ(32.0, 32.0, 8.0)
# mods/novastoryassets.sc2mod
// L8255
libNtve_gf_PointFromXYZ(64.0, 68.046, 4.6144)
// L8255
libNtve_gf_PointFromXYZ(64.0, 68.046, 4.6144)
# mods/starcoop/starcoop.sc2mod
// L5666
libNtve_gf_PointFromXYZ(PointGetX(lv_targetUnitPoint), PointGetY(lv_targetUnitPoint), 2.0)
// L5670
libNtve_gf_PointFromXYZ(PointGetX(lv_targetUnitPoint), PointGetY(lv_targetUnitPoint), 2.0)