# Make Unit Face Angle
Grammar — Make u face angle over dur|Time seconds
Flags —Native
|Action
Makes a unit face a specified angle.
# Arguments
unit
— Unitfixed
— Anglefixed
— Duration
Returns — void
native void UnitSetFacing(
unit inUnit,
fixed inFacing,
fixed inDuration,
);
# Related
Category: Unit / Basic
- [F] —
void
— Unit Show Kill Display — ( UnitShowKillDisplay ) - [F] —
bool
— Unit Can Path To Point — ( UnitPathableToPoint ) - [F] —
bool
— Unit Can Path To Unit — ( UnitPathableToUnit ) - [F] —
void
— Create Units With Default Facing — ( libNtve_gf_CreateUnitsWithDefaultFacing ) - [F] —
void
— Create Units With Point Facing — ( libNtve_gf_CreateUnitsAtPoint2 ) - [F] —
unitgroup
— Create Units Facing Angle — ( UnitCreate ) - [F] —
unitgroup
— Create Units Facing Point — ( libNtve_gf_UnitCreateFacingPoint ) - [F] —
unit
— Last Created Unit — ( UnitLastCreated ) - [F] —
unitgroup
— Last Created Units — ( UnitLastCreatedGroup ) - [F] —
unit
— Original Caster Of Unit — ( UnitGetOriginalCaster ) - [F] —
string
[ gamelink::Effect ] — Effect That Created Unit — ( UnitGetOriginalEffect ) - [F] —
void
— Replace Unit — ( libNtve_gf_ReplaceUnit ) - [F] —
unit
— Last Replaced Unit — ( libNtve_gf_LastReplacedUnit ) - [F] —
void
— Change Owner — ( UnitSetOwner ) - [F] —
void
— Unit Owner Changes — ( TriggerAddEventUnitChangeOwner ) - [F] —
int
— Old Unit Owner — ( EventUnitOwnerOld ) - [F] —
int
— New Unit Owner — ( EventUnitOwnerNew ) - [F] —
void
— Rescue Unit — ( libNtve_gf_RescueUnit ) - [F] —
void
— Rescue Unit Group — ( libNtve_gf_RescueUnit2 ) - [F] —
void
— Kill Unit — ( UnitKill ) - [F] —
void
— Revive Unit — ( UnitRevive ) - [F] —
void
— Remove Unit — ( UnitRemove ) - [F] —
int
— Owner Of Unit — ( UnitGetOwner ) - [F] —
bool
— Unit Is Alive — ( UnitIsAlive ) - [F] —
bool
— Unit Is Valid — ( UnitIsValid ) - [F] —
bool
— Unit Group Is Dead — ( libNtve_gf_UnitGroupIsDead ) - [F] —
void
— Move Unit Instantly — ( UnitSetPosition ) - [F] —
void
— Make Unit Face Angle — ( UnitSetFacing ) - [F] —
void
— Make Unit Face Point — ( libNtve_gf_MakeUnitFacePoint ) - [F] —
point
— Position Of Unit — ( UnitGetPosition ) - [F] —
point
— Goal Position Of Unit — ( UnitGetGoalPosition ) - [F] —
fixed
— Facing Angle Of Unit — ( UnitGetFacing ) - [F] —
void
— Pause/Unpause Unit — ( libNtve_gf_PauseUnit ) - [F] —
void
— Pause/Unpause All Units — ( UnitPauseAll ) - [F] —
void
— Sleep/WakeUp Unit — ( libNtve_gf_SleepUnit ) - [F] —
void
— Show/Hide Unit — ( libNtve_gf_ShowHideUnit ) - [F] —
void
— Share Vision of Unit — ( libNtve_gf_ShareVisionofUnit ) - [F] —
bool
— Unit Is Paused — ( libNtve_gf_UnitIsPaused ) - [F] —
bool
— Unit Is Sleepiing — ( libNtve_gf_UnitIsSleepiing ) - [F] —
bool
— Unit Is Hidden — ( libNtve_gf_UnitIsHidden ) - [F] —
bool
— Unit Is Visible To Player — ( libNtve_gf_UnitIsVisibleToPlayer ) - [F] —
void
— Set Unit Custom Value — ( UnitSetCustomValue ) - [F] —
fixed
— Custom Value Of Unit — ( UnitGetCustomValue ) - [F] —
void
— Unit Enters/Leaves Region — ( TriggerAddEventUnitRegion ) - [F] —
region
— Triggering Region — ( EventUnitRegion ) - [F] —
void
— Unit Enters/Leaves Point — ( TriggerAddEventUnitRangePoint ) - [F] —
void
— Unit Enters/Leaves Range Of Unit — ( TriggerAddEventUnitRange ) - [F] —
unit
— Triggering Range Unit — ( EventUnitRangeUnit ) - [F] —
bool
— Unit In Region — ( libNtve_gf_UnitInRegion ) - [F] —
unit
— Triggering Unit — ( EventUnit ) - [F] —
void
— Load Unit Model — ( UnitLoadModel ) - [F] —
void
— Unload Unit Model — ( UnitUnloadModel ) - [F] —
unit
— Agent Of Player For Unit — ( UnitAgent ) - [F] —
void
— Change Empty Unit Variables In Events — ( UnitEventSetNullVariableInvalid ) - [F] —
text
— Name of Unit — ( UnitGetName ) - [F] —
int
— Ideal Harvester Count — ( UnitIdealWorkerCount ) - [F] —
int
— Current Harvester Count — ( UnitCurrentWorkerCount )
# Examples
# campaigns/liberty.sc2campaign
// L3174
UnitSetFacing(gv_viking, 90.0, 0.0)
// L1014
UnitSetFacing(autoFE6A3FBA_var, 180.0, 0.0)
// L3737
UnitSetFacing(EventUnit(), lv_anglebetweentruckship, 1.5)
// L5497
UnitSetFacing(UnitFromId(4), PointGetFacing(PointFromId(174)), 0.0)
// L5660
UnitSetFacing(gv_odin, PointGetFacing(PointFromId(650)), 0.0)
// L5861
UnitSetFacing(gv_odin, PointGetFacing(PointFromId(160)), 0.0)
// L5808
UnitSetFacing(gv_raynor, 225.0, 0.0)
// L6513
UnitSetFacing(gf_ActorUnit(lp_actorID), PointGetFacing(lp_location), 0.0)
// L19731
UnitSetFacing(gf_ActorUnit(ge_ActorID_ActorRaynorMarine), StringToFixed(StringWord(EventChatMessage(false), 2)), 0.0)
// L20987
UnitSetFacing(gf_GetBGActor(lv_bGActorID), PointGetFacing(gv_bGActors[lv_bGActorID].lv_nodes[lv_currentNodeID].lv_target), 0.0)
// L33622
UnitSetFacing(gf_ActorUnit(ge_ActorID_ActorHanson), (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorHanson)) + 30.0), 0.0)
// L37062
UnitSetFacing(gf_ActorUnit(ge_ActorID_ActorStetmann), (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorStetmann)) + 15.0), 0.0)
// L1620
UnitSetFacing(auto222AD403_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L1636
UnitSetFacing(autoC19B2762_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L1649
UnitSetFacing(autoC61A92F2_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L2344
UnitSetFacing(autoE591F78B_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L2361
UnitSetFacing(auto33C5FB9C_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L5828
UnitSetFacing(gv_nova, PointGetFacing(PointFromId(285)), 0.0)
// L5878
UnitSetFacing(gv_nova, PointGetFacing(PointFromId(285)), 0.0)
// L6011
UnitSetFacing(gv_nova, 0.0, 0.0)
// L6087
UnitSetFacing(gv_nova, 0.0, 0.0)
// L6293
UnitSetFacing(gv_nova, 315.0, 0.0)
// L6371
UnitSetFacing(gv_nova, 315.0, 0.0)
// L4718
UnitSetFacing(UnitLastCreated(), 180.0, 0.0)
// L4721
UnitSetFacing(UnitLastCreated(), 180.0, 0.0)
// L5295
UnitSetFacing(gv_uNITCruiser01, 227.0, 0.0)
// L5297
UnitSetFacing(gv_uNITCruiser02, 227.0, 0.0)
// L5299
UnitSetFacing(gv_uNITCruiser03, 227.0, 0.0)
// L3666
UnitSetFacing(auto47B466D3_var, 315.0, 0.0)
// L5598
UnitSetFacing(autoB9055DE1_var, 135.0, 0.0)
// L6761
UnitSetFacing(autoB2C7F7D1_var, RandomFixed(200.0, 250.0), 0.75)
// L7534
UnitSetFacing(autoA454EC07_var, 45.0, 0.0)
// L11380
UnitSetFacing(gv_tHEONEBROODMOTHER, PointGetFacing(PointFromId(162)), 0.0)
// L3380
UnitSetFacing(gv_kerrigan, 315.0, 0.0)
// L3443
UnitSetFacing(gv_kerrigan, 315.0, 0.0)
// L9523
UnitSetFacing(gv_tHEONEZERATUL, 45.0, 0.0)
// L9721
UnitSetFacing(gv_tHEONEKERRIGAN, 135.0, 0.0)
// L9729
UnitSetFacing(gv_tHEONEZERATUL, 45.0, 0.0)
// L5252
UnitSetFacing(lv_overmind, 270.0, 0.0)
// L5351
UnitSetFacing(lv_kerrigan, 270.0, 0.0)
// L3174
UnitSetFacing(gv_viking, 90.0, 0.0)
// L1014
UnitSetFacing(autoFE6A3FBA_var, 180.0, 0.0)
// L3737
UnitSetFacing(EventUnit(), lv_anglebetweentruckship, 1.5)
// L5497
UnitSetFacing(UnitFromId(4), PointGetFacing(PointFromId(174)), 0.0)
// L5660
UnitSetFacing(gv_odin, PointGetFacing(PointFromId(650)), 0.0)
// L5861
UnitSetFacing(gv_odin, PointGetFacing(PointFromId(160)), 0.0)
// L5808
UnitSetFacing(gv_raynor, 225.0, 0.0)
// L6513
UnitSetFacing(gf_ActorUnit(lp_actorID), PointGetFacing(lp_location), 0.0)
// L19731
UnitSetFacing(gf_ActorUnit(ge_ActorID_ActorRaynorMarine), StringToFixed(StringWord(EventChatMessage(false), 2)), 0.0)
// L20987
UnitSetFacing(gf_GetBGActor(lv_bGActorID), PointGetFacing(gv_bGActors[lv_bGActorID].lv_nodes[lv_currentNodeID].lv_target), 0.0)
// L33622
UnitSetFacing(gf_ActorUnit(ge_ActorID_ActorHanson), (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorHanson)) + 30.0), 0.0)
// L37062
UnitSetFacing(gf_ActorUnit(ge_ActorID_ActorStetmann), (UnitGetFacing(gf_ActorUnit(ge_ActorID_ActorStetmann)) + 15.0), 0.0)
// L1620
UnitSetFacing(auto222AD403_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L1636
UnitSetFacing(autoC19B2762_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L1649
UnitSetFacing(autoC61A92F2_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L2344
UnitSetFacing(autoE591F78B_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L2361
UnitSetFacing(auto33C5FB9C_var, libNtve_gf_RandomAngle(), RandomFixed(0.4, 0.7))
// L5828
UnitSetFacing(gv_nova, PointGetFacing(PointFromId(285)), 0.0)
// L5878
UnitSetFacing(gv_nova, PointGetFacing(PointFromId(285)), 0.0)
// L6011
UnitSetFacing(gv_nova, 0.0, 0.0)
// L6087
UnitSetFacing(gv_nova, 0.0, 0.0)
// L6293
UnitSetFacing(gv_nova, 315.0, 0.0)
// L6371
UnitSetFacing(gv_nova, 315.0, 0.0)
// L4718
UnitSetFacing(UnitLastCreated(), 180.0, 0.0)
// L4721
UnitSetFacing(UnitLastCreated(), 180.0, 0.0)
// L5295
UnitSetFacing(gv_uNITCruiser01, 227.0, 0.0)
// L5297
UnitSetFacing(gv_uNITCruiser02, 227.0, 0.0)
// L5299
UnitSetFacing(gv_uNITCruiser03, 227.0, 0.0)
// L3666
UnitSetFacing(auto47B466D3_var, 315.0, 0.0)
// L5598
UnitSetFacing(autoB9055DE1_var, 135.0, 0.0)
// L6761
UnitSetFacing(autoB2C7F7D1_var, RandomFixed(200.0, 250.0), 0.75)
// L7534
UnitSetFacing(autoA454EC07_var, 45.0, 0.0)
// L11380
UnitSetFacing(gv_tHEONEBROODMOTHER, PointGetFacing(PointFromId(162)), 0.0)
// L3380
UnitSetFacing(gv_kerrigan, 315.0, 0.0)
// L3443
UnitSetFacing(gv_kerrigan, 315.0, 0.0)
// L9523
UnitSetFacing(gv_tHEONEZERATUL, 45.0, 0.0)
// L9721
UnitSetFacing(gv_tHEONEKERRIGAN, 135.0, 0.0)
// L9729
UnitSetFacing(gv_tHEONEZERATUL, 45.0, 0.0)
// L5252
UnitSetFacing(lv_overmind, 270.0, 0.0)
// L5351
UnitSetFacing(lv_kerrigan, 270.0, 0.0)
# campaigns/libertystory.sc2campaign
// L1594
UnitSetFacing(libCamp_gv__CB_Unit[libCamp_gv__CB_Current_UnitIndex[lp_playerIndex]], libCamp_gv__CB_Unit_OriginalFacing[libCamp_gv__CB_Current_UnitIndex[lp_playerIndex]], 0.5)
# campaigns/swarm.sc2campaign
// L8826
UnitSetFacing(gv_zeratul, PointGetFacing(PointFromId(332)), 0.0)
// L8964
UnitSetFacing(gv_zeratul, 0.0, 0.0)
// L9154
UnitSetFacing(gv_zeratul, PointGetFacing(PointFromId(894)), 0.0)
// L9350
UnitSetFacing(gv_zeratul, PointGetFacing(PointFromId(900)), 0.0)
// L9370
UnitSetFacing(UnitFromId(642), PointGetFacing(PointFromId(645)), 0.0)
// L9373
UnitSetFacing(UnitFromId(637), PointGetFacing(PointFromId(646)), 0.0)
// L9376
UnitSetFacing(UnitFromId(643), PointGetFacing(PointFromId(647)), 0.0)
// L9379
UnitSetFacing(UnitFromId(639), PointGetFacing(PointFromId(648)), 0.0)
// L9382
UnitSetFacing(UnitFromId(638), PointGetFacing(PointFromId(649)), 0.0)
// L9386
UnitSetFacing(UnitFromId(641), PointGetFacing(PointFromId(650)), 0.0)
// L5214
UnitSetFacing(gv_kerrigan, PointGetFacing(PointFromId(1621)), 0.0)
// L5346
UnitSetFacing(gv_kerrigan, PointGetFacing(PointFromId(807)), 0.0)
// L7607
UnitSetFacing(gv_kerrigan, 315.0, 0.0)
// L5222
UnitSetFacing(gv_kerrigan, PointGetFacing(PointFromId(229)), 0.0)
// L1804
UnitSetFacing(gv_tHE_ONE_QUEEN, 315.0, 1.0)
// L9542
UnitSetFacing(gv_tHE_ONE_QUEEN, 315.0, 0.0)
// L5422
UnitSetFacing(gv_kerrigan, PointGetFacing(PointFromId(782)), 0.0)
// L5558
UnitSetFacing(gv_kerrigan, PointGetFacing(PointFromId(3)), 0.0)
// L5690
UnitSetFacing(gv_kerrigan, PointGetFacing(PointFromId(1347)), 0.0)