# OBSOLETE - Point Facing Angle
Grammar — point facing angle degrees
Flags —Function
|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
— Pointfixed
— Angle
Returns — point
point libNtve_gf_PointFromPositionAndAngle(
point lp_point,
fixed lp_angle,
);
# Related
Category: Point / Internal
- OBSOLETE - Point Facing Angle —
point
— libNtve_gf_PointFromPositionAndAngle
# Examples
campaigns/swarm.sc2campaign — base.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.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);
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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")) {