# Pause/Unpause Unit
Grammar — pauseUnpause unit
Flags —Action
Pauses or unpauses the specified unit.
# Arguments
unit
— Unitbool
[ preset::PauseUnpauseOption ] — Pause/Unpause
Returns — void
void libNtve_gf_PauseUnit(
unit lp_unit,
bool lp_pauseUnpause,
);
# 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
// L593
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L218
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L223
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L229
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L243
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L260
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L277
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L295
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L310
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L316
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L331
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L1539
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L1731
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L740
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L208
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L213
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L219
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L233
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L249
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L265
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L279
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L285
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L300
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L955
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L584
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L710
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L213
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L219
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L226
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L241
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L257
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L273
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L292
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), true)
// L299
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L316
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L328
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L689
libNtve_gf_PauseUnit(UnitGroupLoopCurrent(), false)
// L2594
libNtve_gf_PauseUnit(gf_CurrentBackgroundUnit(), false)
// L2595
libNtve_gf_PauseUnit(gf_NextBackgroundUnit(), false)
// L2601
libNtve_gf_PauseUnit(gf_CurrentBackgroundUnit(), true)
// L2602
libNtve_gf_PauseUnit(gf_NextBackgroundUnit(), true)
// L4077
libNtve_gf_PauseUnit(lv_indexUnit, true)
// L8652
libNtve_gf_PauseUnit(lv_indexUnit, false)
// L8914
libNtve_gf_PauseUnit(lv_pickedUnit, true)
// L408
libNtve_gf_PauseUnit(lv_u, false)
// L644
libNtve_gf_PauseUnit(UnitFromId(3245), true)
// L648
libNtve_gf_PauseUnit(UnitFromId(96), true)
// L1502
libNtve_gf_PauseUnit(UnitFromId(96), false)
// L1503
libNtve_gf_PauseUnit(UnitFromId(3245), false)
// L6290
libNtve_gf_PauseUnit(autoD4CD02CB_var, false)
// L631
libNtve_gf_PauseUnit(auto97A1CCEC_var, true)
// L1138
libNtve_gf_PauseUnit(autoF9067DCD_var, false)
// L5358
libNtve_gf_PauseUnit(autoA3EA5808_var, false)
// L623
libNtve_gf_PauseUnit(UnitFromId(765), true)
// L1167
libNtve_gf_PauseUnit(gv_purifier, false)
// L5943
libNtve_gf_PauseUnit(autoC7ACFABD_var, false)
// L6379
libNtve_gf_PauseUnit(auto82A4CD1E_var, false)
// L4269
libNtve_gf_PauseUnit(autoF05BE8EE_var, false)
// L4323
libNtve_gf_PauseUnit(autoD8CFF08F_var, false)
// L4482
libNtve_gf_PauseUnit(auto035B6184_var, false)
// L4575
libNtve_gf_PauseUnit(lv_viking1, false)
// L4576
libNtve_gf_PauseUnit(lv_viking2, false)
// L4577
libNtve_gf_PauseUnit(lv_viking3, false)
// L4612
libNtve_gf_PauseUnit(autoE954F54D_var, false)
// L5834
libNtve_gf_PauseUnit(autoAC1D20D3_var, true)
// L1129
libNtve_gf_PauseUnit(autoBD279A32_var, false)
// L5688
libNtve_gf_PauseUnit(UnitFromId(90), false)
// L5764
libNtve_gf_PauseUnit(UnitFromId(90), true)
// L5875
libNtve_gf_PauseUnit(auto3A1CB0E6_var, true)
// L445
libNtve_gf_PauseUnit(gv_odin, true)
// L496
libNtve_gf_PauseUnit(UnitFromId(292), true)
// L497
libNtve_gf_PauseUnit(UnitFromId(8), true)
// L498
libNtve_gf_PauseUnit(UnitFromId(738), true)
// L499
libNtve_gf_PauseUnit(UnitFromId(739), true)
// L509
libNtve_gf_PauseUnit(auto089A9E6A_var, true)
// L1540
libNtve_gf_PauseUnit(UnitFromId(292), false)
// L1541
libNtve_gf_PauseUnit(UnitFromId(8), false)
// L1542
libNtve_gf_PauseUnit(UnitFromId(738), false)
// L1543
libNtve_gf_PauseUnit(UnitFromId(739), false)
// L6344
libNtve_gf_PauseUnit(autoCA63B607_var, false)
// L6588
libNtve_gf_PauseUnit(autoBC4FE2A3_var, false)
// L6904
libNtve_gf_PauseUnit(UnitLastCreated(), true)
// L894
libNtve_gf_PauseUnit(gv_warbot, true)
// L962
libNtve_gf_PauseUnit(auto33CC760C_var, true)
// L2847
libNtve_gf_PauseUnit(auto3310EB0C_var, false)
// L3093
libNtve_gf_PauseUnit(autoF1459CB4_var, true)
// L3997
libNtve_gf_PauseUnit(auto48E250A9_var, true)
// L4206
libNtve_gf_PauseUnit(gv_turret05, false)
// L4207
libNtve_gf_PauseUnit(gv_turret06, false)
// L4208
libNtve_gf_PauseUnit(gv_turret07, false)
// L4643
libNtve_gf_PauseUnit(gv_turret05, false)
// L4644
libNtve_gf_PauseUnit(gv_turret06, false)
// L5529
libNtve_gf_PauseUnit(auto80F9ED1D_var, false)
// L5536
libNtve_gf_PauseUnit(auto53F3EE4E_var, false)
// L5781
libNtve_gf_PauseUnit(gv_raynor, false)
// L5929
libNtve_gf_PauseUnit(auto5A1D1538_var, false)
// L551
libNtve_gf_PauseUnit(UnitFromId(227), true)
// L553
libNtve_gf_PauseUnit(UnitFromId(1314), true)
// L4741
libNtve_gf_PauseUnit(auto7AA2F4BF_var, false)
// L9322
libNtve_gf_PauseUnit(gf_ActorUnit(lp_actorID), false)