# Make Point Face Angle
Grammar — Make p face angle degrees
Flags —Native
|Action
Changes the facing of a point.
# Arguments
point
— Pointfixed
— Angle
Returns — void
native void PointSetFacing(point p, fixed inFacing);
# Related
Category: Point / Creation And Modification
- Point From XYZ —
point
— libNtve_gf_PointFromXYZ - Point From XY —
point
— Point - Point From Name —
point
— PointFromName - Move Point —
void
— PointSet - Make Point Face Angle —
void
— PointSetFacing - Set Point Height —
void
— PointSetHeight
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/thorner01.sc2map/MapScript.galaxy:397
}
}
PointSetFacing(lv_currentPoint, AngleBetweenPoints(lv_currentPoint, gv_trainPath[lv_currentTarget]));
return lv_currentPoint;
}
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3716
lv_angel += lp_rotate;
lv_ret = PointWithOffsetPolar(lp_targetCenter, lv_dis, lv_angel);
PointSetFacing(lv_ret, (PointGetFacing(lp_source) + lp_rotate));
return lv_ret;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/thorner01.sc2map — MapScript.galaxy:397
}
}
PointSetFacing(lv_currentPoint, AngleBetweenPoints(lv_currentPoint, gv_trainPath[lv_currentTarget]));
return lv_currentPoint;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:3716
lv_angel += lp_rotate;
lv_ret = PointWithOffsetPolar(lp_targetCenter, lv_dis, lv_angel);
PointSetFacing(lv_ret, (PointGetFacing(lp_source) + lp_rotate));
return lv_ret;
}
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map/MapScript.galaxy:3090
while (!UnitGroupLoopDone()) {
lv_tempLoc = UnitGetPosition(UnitGroupLoopCurrent());
PointSetFacing(lv_tempLoc, UnitGetFacing(UnitGroupLoopCurrent()));
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);
UnitGroupAdd(gv_cinematicHiddenUnits, UnitGroupLoopCurrent());
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map/MapScript.galaxy:1326
auto0CF21101_var = 1;
for ( ; auto0CF21101_var <= auto0CF21101_ae; auto0CF21101_var += 1 ) {
PointSetFacing(gv_hybridReleaseLocation[auto0CF21101_var], AngleBetweenPoints(gv_hybridCellLocation[auto0CF21101_var], gv_hybridReleaseLocation[auto0CF21101_var]));
}
gv_hybridUnitArray[1] = UnitFromId(29);
campaigns/swarm.sc2campaign — base.sc2maps/maps/campaign/swarm/zzerus01.sc2map/MapScript.galaxy:2228
UnitSetCustomValue(auto174509A1_var, 0, lv_campIndex);
lv_location = UnitGetPosition(auto174509A1_var);
PointSetFacing(lv_location, UnitGetFacing(auto174509A1_var));
libHots_gf_StorePointForUnit(auto174509A1_var, 1, lv_location);
}
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/evolution/zevolutionzergling.sc2map — MapScript.galaxy:3090
while (!UnitGroupLoopDone()) {
lv_tempLoc = UnitGetPosition(UnitGroupLoopCurrent());
PointSetFacing(lv_tempLoc, UnitGetFacing(UnitGroupLoopCurrent()));
libNtve_gf_ShowHideUnit(UnitGroupLoopCurrent(), false);
UnitGroupAdd(gv_cinematicHiddenUnits, UnitGroupLoopCurrent());
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zhybrid02.sc2map — MapScript.galaxy:1326
auto0CF21101_var = 1;
for ( ; auto0CF21101_var <= auto0CF21101_ae; auto0CF21101_var += 1 ) {
PointSetFacing(gv_hybridReleaseLocation[auto0CF21101_var], AngleBetweenPoints(gv_hybridCellLocation[auto0CF21101_var], gv_hybridReleaseLocation[auto0CF21101_var]));
}
gv_hybridUnitArray[1] = UnitFromId(29);
campaigns/swarm.sc2campaign/base.sc2maps/maps/campaign/swarm/zzerus01.sc2map — MapScript.galaxy:2228
UnitSetCustomValue(auto174509A1_var, 0, lv_campIndex);
lv_location = UnitGetPosition(auto174509A1_var);
PointSetFacing(lv_location, UnitGetFacing(auto174509A1_var));
libHots_gf_StorePointForUnit(auto174509A1_var, 1, lv_location);
}
campaigns/swarmstory.sc2campaign — base.sc2data/TriggerLibs/SwarmCampaignLib.galaxy:1194
// Implementation
lv_dropLocation = Point(PointGetX(lp_location), PointGetY(lp_location));
PointSetFacing(lv_dropLocation, PointGetFacing(lp_location));
lv_dropUnits = UnitGroupCopy(lp_units);
DataTableSetUnitGroup(false, libSwaC_gf__LastDroppedUnitsDataTableName(), lv_dropUnits);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur01.sc2map/MapScript.galaxy:476
Wait(0.0625, c_timeGame);
lv_hybridPoint = UnitGetPosition(lv_hybrid);
PointSetFacing(lv_hybridPoint, UnitGetFacing(lv_hybrid));
Wait(0.0625, c_timeGame);
libNtve_gf_CreateModelWithPointFacing("Aiur_City_HybridWarp", lv_hybridPoint);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/paiur04.sc2map/MapScript.galaxy:507
Wait(0.0625, c_timeGame);
lv_hybridPoint = UnitGetPosition(lv_hybrid);
PointSetFacing(lv_hybridPoint, UnitGetFacing(lv_hybrid));
Wait(0.0625, c_timeGame);
libNtve_gf_CreateModelWithPointFacing("Aiur_City_HybridWarp", lv_hybridPoint);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:2255
if ((EventUnit() == gv_hybridCellUnits[1])) {
PingDestroy(gv_hybridPings[1]);
PointSetFacing(lv_hybridCellPoint, 180.01);
}
else {
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pmoebius01.sc2map/MapScript.galaxy:2259
else {
PingDestroy(gv_hybridPings[2]);
PointSetFacing(lv_hybridCellPoint, 0.32);
}
gv_hybridKilled += 1;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur01.sc2map — MapScript.galaxy:476
Wait(0.0625, c_timeGame);
lv_hybridPoint = UnitGetPosition(lv_hybrid);
PointSetFacing(lv_hybridPoint, UnitGetFacing(lv_hybrid));
Wait(0.0625, c_timeGame);
libNtve_gf_CreateModelWithPointFacing("Aiur_City_HybridWarp", lv_hybridPoint);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/paiur04.sc2map — MapScript.galaxy:507
Wait(0.0625, c_timeGame);
lv_hybridPoint = UnitGetPosition(lv_hybrid);
PointSetFacing(lv_hybridPoint, UnitGetFacing(lv_hybrid));
Wait(0.0625, c_timeGame);
libNtve_gf_CreateModelWithPointFacing("Aiur_City_HybridWarp", lv_hybridPoint);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2map — MapScript.galaxy:2255
if ((EventUnit() == gv_hybridCellUnits[1])) {
PingDestroy(gv_hybridPings[1]);
PointSetFacing(lv_hybridCellPoint, 180.01);
}
else {
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pmoebius01.sc2map — MapScript.galaxy:2259
else {
PingDestroy(gv_hybridPings[2]);
PointSetFacing(lv_hybridCellPoint, 0.32);
}
gv_hybridKilled += 1;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:3220
// Implementation
lv_dropLocation = Point(PointGetX(lp_location), PointGetY(lp_location));
PointSetFacing(lv_dropLocation, PointGetFacing(lp_location));
lv_dropUnits = UnitGroupCopy(lp_units);
DataTableSetUnitGroup(false, libVCMI_gf_PM_DropPod_LastDroppedUnitsDataTableName(), lv_dropUnits);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:629
libVoiC_gf_RegisterCampaignEvent(libVoiC_ge_PC_Event_UIChampionQuit, libVCST_gt_PS_EventUIChampion_Quit);
libVoiC_gf_RegisterCampaignEvent(libVoiC_ge_PC_Event_UIArmyQuit, libVCST_gt_PS_EventUIArmy_Quit);
PointSetFacing(libVCST_gv_pS_ConversationCutscenePosition, 270.0);
if ((lp_storyMap != "EpilogueStory01")) {
libVCST_gf_PS_ClickableDataInit();
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:3982
// Implementation
lv_pointWithFacing = lp_point;
PointSetFacing(lv_pointWithFacing, lp_angle);
return lv_pointWithFacing;
}
mods/core.sc2mod — base.sc2data/TriggerLibs/NativeLib.galaxy:4008
// Implementation
lv_pointWithFacing = libNtve_gf_PointFromXYZ(PointGetX(lp_point), PointGetY(lp_point), PointGetHeight(lp_point));
PointSetFacing(lv_pointWithFacing, lp_angle);
return lv_pointWithFacing;
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3269
// Implementation
lv_pointWithFacing = lp_point;
PointSetFacing(lv_pointWithFacing, lp_angle);
return lv_pointWithFacing;
}
mods/core.stormmod — base.stormdata/TriggerLibs/NativeLib.galaxy:3307
// Implementation
lv_pointWithFacing = libNtve_gf_PointFromXYZ(PointGetX(lp_point), PointGetY(lp_point), PointGetHeight(lp_point));
PointSetFacing(lv_pointWithFacing, lp_angle);
return lv_pointWithFacing;
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap/MapScript.galaxy:1404
gf_PauseGameStateforCutscene(true);
gv_originalPlayerPoint = UnitGetPosition(gv_heroPlayer);
PointSetFacing(gv_originalPlayerPoint, UnitGetFacing(gv_heroPlayer));
UnitSetPosition(gv_heroPlayer, PointFromId(169), false);
libStEx_gf_FreezeUnfreezeUnit(libStEx_ge_FreezeOptions_Unfrezze, gv_heroPlayer);
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap/MapScript.galaxy:2068
libNtve_gf_MakeUnitInvulnerable(libStEx_gv_hERO_FriendlyUther, true);
lv_position = UnitGetPosition(libStEx_gv_hERO_FriendlyUther);
PointSetFacing(lv_position, UnitGetFacing(libStEx_gv_hERO_FriendlyUther));
libCore_gf_StorePointForUnit(libStEx_gv_hERO_FriendlyUther, 1, lv_position);
PlayerSetState(libStEx_gv_pLAYER_02_UTHER, c_playerStateFidgetingEnabled, false);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialmapmechanics.stormmap — MapScript.galaxy:1404
gf_PauseGameStateforCutscene(true);
gv_originalPlayerPoint = UnitGetPosition(gv_heroPlayer);
PointSetFacing(gv_originalPlayerPoint, UnitGetFacing(gv_heroPlayer));
UnitSetPosition(gv_heroPlayer, PointFromId(169), false);
libStEx_gf_FreezeUnfreezeUnit(libStEx_ge_FreezeOptions_Unfrezze, gv_heroPlayer);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/startingexperience/tutorialveteran.stormmap — MapScript.galaxy:2068
libNtve_gf_MakeUnitInvulnerable(libStEx_gv_hERO_FriendlyUther, true);
lv_position = UnitGetPosition(libStEx_gv_hERO_FriendlyUther);
PointSetFacing(lv_position, UnitGetFacing(libStEx_gv_hERO_FriendlyUther));
libCore_gf_StorePointForUnit(libStEx_gv_hERO_FriendlyUther, 1, lv_position);
PlayerSetState(libStEx_gv_pLAYER_02_UTHER, c_playerStateFidgetingEnabled, false);
mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod — base.stormdata/LibAMGT.galaxy:432
libAMGT_gv_aRMGardenMinionGroup[libAMGT_gv_aRMGardenMinionGroupCount].lv_types[lv_minionIndex] = UnitGetType(lv_itMinion);
libAMGT_gv_aRMGardenMinionGroup[libAMGT_gv_aRMGardenMinionGroupCount].lv_positions[lv_minionIndex] = UnitGetPosition(lv_itMinion);
PointSetFacing(libAMGT_gv_aRMGardenMinionGroup[libAMGT_gv_aRMGardenMinionGroupCount].lv_positions[lv_minionIndex], UnitGetFacing(lv_itMinion));
UnitRemove(lv_itMinion);
}
mods/heroesbrawlmods/arenamodemods/gardenarena.stormmod — base.stormdata/LibAMGT.galaxy:670
libAMGT_gv_aRMGardenTerrors[libAMGT_gv_aRMGardenTerrorCount].lv_area = lp_area;
libAMGT_gv_aRMGardenTerrors[libAMGT_gv_aRMGardenTerrorCount].lv_position = UnitGetPosition(lp_terror);
PointSetFacing(libAMGT_gv_aRMGardenTerrors[libAMGT_gv_aRMGardenTerrorCount].lv_position, UnitGetFacing(lp_terror));
UnitRemove(lp_terror);
libAMGT_gv_aRMGardenTerrors[libAMGT_gv_aRMGardenTerrorCount].lv_terror = null;
mods/heroesbrawlmods/arenamodemods/punisherarena.stormmod — base.stormdata/LibAMPU.galaxy:114
libAMPU_gv_aRMPunisherPunishers[lv_itTeam].lv_state = libAMPU_ge_ARMPunisherState_GateOpen;
libAMPU_gv_aRMPunisherPunisherSpawnLocations[lv_itTeam] = UnitGetPosition(libAMPU_gv_aRMPunisherPunishers[lv_itTeam].lv_unit);
PointSetFacing(libAMPU_gv_aRMPunisherPunisherSpawnLocations[lv_itTeam], UnitGetFacing(libAMPU_gv_aRMPunisherPunishers[lv_itTeam].lv_unit));
}
libAMPU_gv_aRMPunisherPunisherEngageArea = lp_engageArea;
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:298
lv_rangedAnchor = PointWithOffsetPolar(lp_anchorPoint, lv_rangedRank_C, lv_facingAngle);
lv_rallyStructures = (lp_position);
PointSetFacing(lv_meleeAnchor, lv_facingAngle);
PointSetFacing(lv_rangedAnchor, lv_facingAngle);
libPEB1_gv_pVEMinionWaveMinionRally[lp_lane].lv_rallyPosition[lv_rallyStructures][libCore_ge_MinionTypes_Footmen][1] = lv_meleeAnchor;
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:299
lv_rallyStructures = (lp_position);
PointSetFacing(lv_meleeAnchor, lv_facingAngle);
PointSetFacing(lv_rangedAnchor, lv_facingAngle);
libPEB1_gv_pVEMinionWaveMinionRally[lp_lane].lv_rallyPosition[lv_rallyStructures][libCore_ge_MinionTypes_Footmen][1] = lv_meleeAnchor;
libPEB1_gv_pVEMinionWaveMinionRally[lp_lane].lv_rallyPosition[lv_rallyStructures][libCore_ge_MinionTypes_Footmen][2] = PointWithOffsetPolar(lv_meleeAnchor, lv_meleeWidth_C, (lv_facingAngle + 90.0));
mods/heroesbrawlmods/brawlmapmods/coop/deadmansstand.stormmod — base.stormdata/LibPEB1.galaxy:313
libPEB1_gv_pVEMinionWaveMinionRally[lp_lane].lv_rallyPosition[lv_rallyStructures][libCore_ge_MinionTypes_Ranged][4] = PointWithOffsetPolar(lv_rangedAnchor, (lv_rangedWidth_C * 2.0), (lv_facingAngle + 90.0));
libPEB1_gv_pVEMinionWaveMinionRally[lp_lane].lv_rallyPosition[lv_rallyStructures][libCore_ge_MinionTypes_Ranged][5] = PointWithOffsetPolar(lv_rangedAnchor, (lv_rangedWidth_C * 2.0), (lv_facingAngle - 90.0));
PointSetFacing(libPEB1_gv_pVEMinionWaveMinionRally[lp_lane].lv_rallyPosition[lv_rallyStructures][libCore_ge_MinionTypes_Wizard][1], lv_facingAngle);
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameLib.galaxy:8794
lv_minionType = libCore_gv_dataMinionWaveCompositions[(lp_composition)].lv_groupMinionType[lv_itGroup];
lv_spawnPoint = libNtve_gf_PointOffsetTowardsPoint(lv_basePoint, lv_currentOffsetAmount, lv_offsetPoint);
PointSetFacing(lv_spawnPoint, PointGetFacing(lv_basePoint));
autoEFB6C6D3_ae = libCore_gv_dataMinionWaveCompositions[(lp_composition)].lv_groupMinionCount[lv_itGroup];
lv_itMinion = 1;
mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod — base.stormdata/LibMHtM.galaxy:616
libMHtM_gv_mMUnderworldMinionGroups[libMHtM_gv_mMUnderworldMinionGroupCount].lv_minionType[lv_minionIndex] = UnitGetType(lv_itMinion);
libMHtM_gv_mMUnderworldMinionGroups[libMHtM_gv_mMUnderworldMinionGroupCount].lv_positions[lv_minionIndex] = UnitGetPosition(lv_itMinion);
PointSetFacing(libMHtM_gv_mMUnderworldMinionGroups[libMHtM_gv_mMUnderworldMinionGroupCount].lv_positions[lv_minionIndex], UnitGetFacing(lv_itMinion));
UnitRemove(lv_itMinion);
}
mods/heroesmapmods/battlegroundmapmods/hauntedmines.stormmod — base.stormdata/LibMHtM.galaxy:648
libMHtM_gv_mMUnderworldBoss = UnitGroupUnit(UnitGroup("UnderworldBoss", libCore_gv_cOMPUTER_Hostile, lp_bossRegion, UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32)) | (1 << (c_targetFilterHidden - 32))), 1), 1);
libMHtM_gv_mMUnderworldBossLocation = UnitGetPosition(libMHtM_gv_mMUnderworldBoss);
PointSetFacing(libMHtM_gv_mMUnderworldBossLocation, UnitGetFacing(libMHtM_gv_mMUnderworldBoss));
UnitRemove(libMHtM_gv_mMUnderworldBoss);
libMHtM_gv_mMUnderworldBoss = null;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:3393
// Implementation
lv_dropLocation = Point(PointGetX(lp_location), PointGetY(lp_location));
PointSetFacing(lv_dropLocation, PointGetFacing(lp_location));
lv_dropUnits = UnitGroupCopy(lp_units);
DataTableSetUnitGroup(false, libNCMI_gf_NM_DropPod_LastDroppedUnitsDataTableName(), lv_dropUnits);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:6232
lv_spawnPosition = UnitGetPosition(lp_targetUnit);
PointSetFacing(lv_spawnPosition, UnitGetFacing(lp_targetUnit));
UnitRemove(lp_targetUnit);
libNtve_gf_CreateUnitsAtPoint2(1, lv_newUnitType, c_unitCreateIgnorePlacement, lv_owner, lv_spawnPosition);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMI.galaxy:11200
// Implementation
lv_dropLocation = Point(PointGetX(lp_location), PointGetY(lp_location));
PointSetFacing(lv_dropLocation, PointGetFacing(lp_location));
lv_dropUnits = UnitGroupCopy(lp_units);
DataTableSetUnitGroup(false, libCOMI_gf_CM_DropPod_LastDroppedUnitsDataTableName(), lv_dropUnits);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:831
}
lv_spawnPosition = UnitGetPosition(lp_killingUnit);
PointSetFacing(lv_spawnPosition, UnitGetFacing(lp_killingUnit));
UnitRemove(lp_killingUnit);
libNtve_gf_CreateUnitsAtPoint2(1, lv_newUnitType, c_unitCreateIgnorePlacement, UnitGetOwner(lp_killingUnit), lv_spawnPosition);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1018
if ((PathingType(lv_teleportPoint) == c_pathingGround)) {
lv_departPoint = UnitGetPosition(lp_damagedUnit);
PointSetFacing(lv_departPoint, AngleBetweenPoints(lv_departPoint, lv_teleportPoint));
PointSetHeight(lv_departPoint, UnitGetHeight(lp_damagedUnit));
libNtve_gf_CreateModelWithPointFacing("DarkTemplarChampionBlinkOut", lv_departPoint);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:1029
UnitSetState(lp_damagedUnit, c_unitStateInvulnerable, true);
UnitBehaviorAdd(lp_damagedUnit, "MutatorSideStep", lp_damagedUnit, 1);
PointSetFacing(lv_teleportPoint, AngleBetweenPoints(lv_teleportPoint, lv_departPoint));
PointSetHeight(lv_teleportPoint, UnitGetHeight(lp_damagedUnit));
libNtve_gf_CreateModelWithPointFacing("DarkTemplarChampionBlinkIn", lv_teleportPoint);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOMU.galaxy:3478
}
lv_spawnPosition = UnitGetPosition(lp_civilianUnit);
PointSetFacing(lv_spawnPosition, UnitGetFacing(lp_civilianUnit));
UnitRemove(lp_civilianUnit);
libNtve_gf_CreateUnitsAtPoint2(1, lv_newUnitType, c_unitCreateIgnorePlacement, RandomInt(3, 4), lv_spawnPosition);
mods/voidprologue.sc2mod — base.sc2data/LibA3DDD02B.galaxy:882
// Implementation
lv_dropLocation = Point(PointGetX(lp_location), PointGetY(lp_location));
PointSetFacing(lv_dropLocation, PointGetFacing(lp_location));
lv_dropUnits = UnitGroupCopy(lp_units);
DataTableSetUnitGroup(false, libA3DDD02B_gf__LastDroppedUnitsDataTableName(), lv_dropUnits);