# OBSOLETE - Point Facing Angle

Grammarpoint facing angle degrees
FlagsFunction | Hidden

This is an obsolete version of this function and will no longer show up in the function list. This should be replaced with the newer version to avoid issues.

# Arguments

  • point — Point
  • fixed — Angle

Returns — point

point libNtve_gf_PointFromPositionAndAngle(
	point lp_point,
	fixed lp_angle,
);

Category: Point / Internal

# Examples

campaigns/swarm.sc2campaignbase.sc2maps/maps/campaign/swarm/zspace01.sc2map/MapScript.galaxy:4520

    UnitBehaviorAdd(gv_pirateCapitalShip, "GhostHoldFireB", gv_pirateCapitalShip, 1);
    UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(4)), c_orderQueueReplace);
    UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 4), libNtve_gf_PointFromPositionAndAngle(PointFromId(4), 175.0)), c_orderQueueAddToEnd);
    while (!((UnitOrderCount(gv_pirateCapitalShip) == 0))) {
        Wait(0.25, c_timeGame);

campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zspace01.sc2mapMapScript.galaxy:4520

    UnitBehaviorAdd(gv_pirateCapitalShip, "GhostHoldFireB", gv_pirateCapitalShip, 1);
    UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 0), PointFromId(4)), c_orderQueueReplace);
    UnitIssueOrder(gv_pirateCapitalShip, OrderTargetingPoint(AbilityCommand("move", 4), libNtve_gf_PointFromPositionAndAngle(PointFromId(4), 175.0)), c_orderQueueAddToEnd);
    while (!((UnitOrderCount(gv_pirateCapitalShip) == 0))) {
        Wait(0.25, c_timeGame);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7265

        lv_casterPoint = EventPlayerEffectUsedPoint(c_effectLocationCasterPoint);
        lv_facing = UnitGetFacing(lv_azmodan);
        lv_offsetPoint = PointWithOffsetPolar(libNtve_gf_PointFromPositionAndAngle(lv_casterPoint, UnitGetFacing(lv_azmodan)), lv_offset, UnitGetFacing(lv_azmodan));
    }
    else if ((EventPlayerEffectUsed() == "AzmodanSummonDemonWarriorArmyOfHellTalentDummySet1")) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7271

        lv_facing = UnitGetFacing(lv_azmodan);
        lv_facing = (UnitGetFacing(lv_azmodan) + 17.5);
        lv_offsetPoint = PointWithOffsetPolar(libNtve_gf_PointFromPositionAndAngle(lv_casterPoint, UnitGetFacing(lv_azmodan)), lv_offset, (UnitGetFacing(lv_azmodan) + 17.5));
    }
    else if ((EventPlayerEffectUsed() == "AzmodanSummonDemonWarriorArmyOfHellTalentDummySet2")) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7276

        lv_casterPoint = EventPlayerEffectUsedPoint(c_effectLocationCasterPoint);
        lv_facing = (UnitGetFacing(lv_azmodan) - 17.5);
        lv_offsetPoint = PointWithOffsetPolar(libNtve_gf_PointFromPositionAndAngle(lv_casterPoint, UnitGetFacing(lv_azmodan)), lv_offset, (UnitGetFacing(lv_azmodan) - 17.5));
    }
    else if ((EventPlayerEffectUsed() == "AzmodanSummonDemonWarriorHellRiftTalentDummySet")) {

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7284

        lv_target = EventPlayerEffectUsedPoint(c_effectLocationTargetUnit);
        lv_facing = UnitGetFacing(lv_azmodan);
        lv_offsetPoint = PointWithOffsetPolar(libNtve_gf_PointFromPositionAndAngle(lv_casterPoint, UnitGetFacing(lv_azmodan)), lv_offset, UnitGetFacing(lv_azmodan));
    }
    libNtve_gf_UnitCreateFacingPoint(1, "AzmodanDemonWarrior", 0, UnitGetOwner(lv_azmodan), lv_offsetPoint, PointWithOffsetPolar(libNtve_gf_PointFromPositionAndAngle(lv_casterPoint, UnitGetFacing(lv_azmodan)), 4.5, lv_facing), lv_azmodan);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:7286

        lv_offsetPoint = PointWithOffsetPolar(libNtve_gf_PointFromPositionAndAngle(lv_casterPoint, UnitGetFacing(lv_azmodan)), lv_offset, UnitGetFacing(lv_azmodan));
    }
    libNtve_gf_UnitCreateFacingPoint(1, "AzmodanDemonWarrior", 0, UnitGetOwner(lv_azmodan), lv_offsetPoint, PointWithOffsetPolar(libNtve_gf_PointFromPositionAndAngle(lv_casterPoint, UnitGetFacing(lv_azmodan)), 4.5, lv_facing), lv_azmodan);
    lv_demon = UnitLastCreated();
    if ((EventPlayerEffectUsed() == "AzmodanSummonDemonWarriorHellRiftTalentDummySet")) {