# Kill Unit
Grammar — Kill u
Flags —Native
|Action
Kills the specified unit.
# Arguments
unit
— Unit
Returns — void
native void UnitKill(unit inUnit);
# 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
// L635
UnitKill(lv_pickedUnit)
// L6002
UnitKill(gv_terraTronSaw)
// L7209
UnitKill(gv_viking)
// L7446
UnitKill(lv_indexUnit)
// L1491
UnitKill(UnitFromId(2508))
// L5528
UnitKill(EventUnit())
// L1418
UnitKill(auto2B8B6529_var)
// L1425
UnitKill(auto7342DFD2_var)
// L1532
UnitKill(auto3342A984_var)
// L1539
UnitKill(auto310B3AEC_var)
// L1646
UnitKill(auto679CDD5D_var)
// L1653
UnitKill(auto61876AB1_var)
// L297
UnitKill(lv_u)
// L1504
UnitKill(EventUnitProgressUnit())
// L2068
UnitKill(autoB51C2030_var)
// L4385
UnitKill(auto28C6FFF2_var)
// L5560
UnitKill(EventUnit())
// L4968
UnitKill(EventUnit())
// L5726
UnitKill(UnitFromId(222))
// L5727
UnitKill(UnitFromId(183))
// L1181
UnitKill(UnitFromId(1132))
// L1724
UnitKill(auto6ADED6AB_var)
// L4969
UnitKill(EventUnit())
// L5031
UnitKill(EventUnit())
// L5378
UnitKill(UnitFromId(1035))
// L5379
UnitKill(UnitFromId(1034))
// L5383
UnitKill(UnitLastCreated())
// L5386
UnitKill(UnitLastCreated())
// L5388
UnitKill(UnitLastCreated())
// L5391
UnitKill(UnitLastCreated())
// L2138
UnitKill(autoA22A473B_var)
// L2148
UnitKill(auto18D9D224_var)
// L2258
UnitKill(gv_secretDocuments)
// L2768
UnitKill(gv_odin)
// L3234
UnitKill(UnitFromId(1597))
// L3266
UnitKill(UnitFromId(1612))
// L3298
UnitKill(UnitFromId(216))
// L3330
UnitKill(UnitFromId(213))
// L3362
UnitKill(UnitFromId(217))
// L3394
UnitKill(UnitFromId(215))
// L1953
UnitKill(autoBF6960A8_var)
// L1991
UnitKill(auto57BDA02E_var)
// L2029
UnitKill(auto79304629_var)
// L2067
UnitKill(autoBB91371A_var)
// L2107
UnitKill(autoB3679912_var)
// L2147
UnitKill(auto1E8BF10F_var)
// L2186
UnitKill(auto576738E4_var)
// L2227
UnitKill(autoFB3D03A8_var)
// L3214
UnitKill(UnitFromId(1038))
// L3279
UnitKill(UnitFromId(1038))
// L5766
UnitKill(UnitFromId(158))
// L1948
UnitKill(gv_rebelBeacon)
// L2183
UnitKill(gv_rebelMarinesBeacon01)
// L2231
UnitKill(gv_rebelMarinesBeacon02)
// L2279
UnitKill(gv_rebelMarinesBeacon03)
// L2328
UnitKill(gv_rebelMarinesBeacon01)
// L2372
UnitKill(gv_rebelMarinesBeacon02)
// L2416
UnitKill(gv_rebelMarinesBeacon03)
// L5518
UnitKill(auto5C92184F_var)
// L5579
UnitKill(auto6F566A58_var)
// L5641
UnitKill(autoD5C770CD_var)
// L5703
UnitKill(auto10DA5D10_var)
// L3894
UnitKill(EventUnit())
// L1200
UnitKill(autoC4DE7299_var)
// L3256
UnitKill(UnitFromId(63))
// L4184
UnitKill(UnitFromId(1063))
// L4185
UnitKill(UnitFromId(1065))
// L4186
UnitKill(UnitFromId(1147))
// L4327
UnitKill(UnitFromId(17))
// L4348
UnitKill(UnitFromId(802))
// L2593
UnitKill(gv_cam_Beacon)
// L3172
UnitKill(gv_mov_Beacon01)
// L3380
UnitKill(gv_mov_Beacon02)
// L4003
UnitKill(gv_mov_Beacon03)
// L1844
UnitKill(UnitFromId(572))
// L2088
UnitKill(UnitFromId(572))
// L4400
UnitKill(EventUnit())
// L4902
UnitKill(EventUnit())
// L438
UnitKill(lv_u)
// L3218
UnitKill(EventUnit())
// L6114
UnitKill(UnitFromId(3))
// L6159
UnitKill(gv_victoryArtifact)
// L5197
UnitKill(UnitFromId(492))
// L5243
UnitKill(UnitFromId(494))
// L5289
UnitKill(UnitFromId(495))
// L8261
UnitKill(gv_warfieldShipFlying)
// L8415
UnitKill(gv_hydraSquish)
// L495
UnitKill(lp_poppedEgg)
// L499
UnitKill(UnitLastCreated())
// L3413
UnitKill(UnitFromId(1371))
// L5322
UnitKill(UnitFromId(1998))
// L5771
UnitKill(auto54AE8B77_var)
// L6989
UnitKill(UnitFromId(2405))
// L7674
UnitKill(autoB537B079_var)
// L8197
UnitKill(UnitFromId(2406))
// L9912
UnitKill(gv__1BroodchamberNuke)
// L10697
UnitKill(gv__2BroodchamberNuke)
// L372
UnitKill(lp_victim)
// L417
UnitKill(autoD59259D7_var)
// L424
UnitKill(autoD59259D7_var)