# Remove Unit

Grammar — Remove u from the game
FlagsNative | Action

Removes a unit from the game.

# Arguments

  • unit — Unit

Returns — void

native void UnitRemove(unit inUnit);

Category: Unit / Basic

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L417
UnitRemove(UnitGroupLoopCurrent())
// L423
UnitRemove(UnitGroupLoopCurrent())
// L677
UnitRemove(UnitGroupLoopCurrent())
// L682
UnitRemove(UnitGroupLoopCurrent())
// L326
UnitRemove(UnitGroupLoopCurrent())
// L830
UnitRemove(UnitGroupLoopCurrent())
// L836
UnitRemove(UnitGroupLoopCurrent())
// L905
UnitRemove(gv_shield01)
// L906
UnitRemove(gv_shield02)
// L907
UnitRemove(gv_shield03)
// L910
UnitRemove(UnitGroupLoopCurrent())
// L1001
UnitRemove(UnitGroupLoopCurrent())
// L1162
UnitRemove(UnitGroupLoopCurrent())
// L1167
UnitRemove(UnitGroupLoopCurrent())
// L496
UnitRemove(UnitGroupLoopCurrent())
// L731
UnitRemove(UnitGroupLoopCurrent())
// L623
UnitRemove(UnitGroupLoopCurrent())
// L630
UnitRemove(UnitGroupLoopCurrent())
// L642
UnitRemove(UnitGroupLoopCurrent())
// L647
UnitRemove(UnitGroupLoopCurrent())
// L652
UnitRemove(UnitGroupLoopCurrent())
// L1720
UnitRemove(UnitGroupLoopCurrent())
// L1725
UnitRemove(UnitGroupLoopCurrent())
// L1365
UnitRemove(UnitGroupLoopCurrent())
// L1371
UnitRemove(UnitGroupLoopCurrent())
// L1377
UnitRemove(UnitGroupLoopCurrent())
// L1383
UnitRemove(UnitGroupLoopCurrent())
// L1490
UnitRemove(UnitGroupLoopCurrent())
// L1496
UnitRemove(UnitGroupLoopCurrent())
// L1502
UnitRemove(UnitGroupLoopCurrent())
// L2185
UnitRemove(UnitGroupLoopCurrent())
// L2191
UnitRemove(UnitGroupLoopCurrent())
// L2277
UnitRemove(UnitGroupLoopCurrent())
// L778
UnitRemove(UnitGroupLoopCurrent())
// L784
UnitRemove(UnitGroupLoopCurrent())
// L853
UnitRemove(gv_shield01)
// L854
UnitRemove(gv_shield02)
// L855
UnitRemove(gv_shield03)
// L858
UnitRemove(UnitGroupLoopCurrent())
// L950
UnitRemove(UnitGroupLoopCurrent())
// L1112
UnitRemove(UnitGroupLoopCurrent())
// L1117
UnitRemove(UnitGroupLoopCurrent())
// L1279
UnitRemove(UnitGroupLoopCurrent())
// L665
UnitRemove(UnitGroupLoopCurrent())
// L670
UnitRemove(UnitGroupLoopCurrent())
// L310
UnitRemove(UnitGroupLoopCurrent())
// L322
UnitRemove(UnitGroupLoopCurrent())
// L835
UnitRemove(UnitGroupLoopCurrent())
// L842
UnitRemove(UnitGroupLoopCurrent())
// L912
UnitRemove(gv_shield01)
// L913
UnitRemove(gv_shield02)
// L914
UnitRemove(gv_shield03)
// L917
UnitRemove(UnitGroupLoopCurrent())
// L1014
UnitRemove(UnitGroupLoopCurrent())
// L1182
UnitRemove(UnitGroupLoopCurrent())
// L409
UnitRemove(UnitGroupLoopCurrent())
// L652
UnitRemove(UnitGroupLoopCurrent())
// L649
UnitRemove(lv_pickedUnit)
// L2313
UnitRemove(lv_beamTarget)
// L2340
UnitRemove(lv_beamTarget)
// L2579
UnitRemove(lv_unit)
// L2926
UnitRemove(lv_u)
// L2932
UnitRemove(lv_u)
// L2938
UnitRemove(lv_u)
// L2944
UnitRemove(lv_u)
// L3017
UnitRemove(lp_powerup)
// L5942
UnitRemove(EventUnit())
// L641
UnitRemove(UnitFromId(3245))
// L1111
UnitRemove(UnitFromId(290))
// L3781
UnitRemove(EventUnitCargo())
// L3788
UnitRemove(EventUnitCargo())
// L3836
UnitRemove(lv_unit)
// L3963
UnitRemove(auto9B9FDE4D_var)
// L4013
UnitRemove(auto37D97D54_var)
// L4020
UnitRemove(autoC6E48224_var)
// L4029
UnitRemove(auto87D49383_var)
// L4036
UnitRemove(autoD9E3C06D_var)
// L4708
UnitRemove(UnitFromId(459))
// L4715
UnitRemove(auto1D795B71_var)
// L5365
UnitRemove(auto8062DE98_var)
// L5372
UnitRemove(autoC6A0BB64_var)
// L5413
UnitRemove(auto8AF64AEF_var)
// L2078
UnitRemove(autoFE858403_var)
// L2085
UnitRemove(autoAA05245A_var)
// L2172
UnitRemove(auto61748A2E_var)
// L2179
UnitRemove(auto751EF2C3_var)
// L2267
UnitRemove(auto6FA0985D_var)
// L2274
UnitRemove(auto2EF830BF_var)
// L2663
UnitRemove(EventUnit())
// L3191
UnitRemove(auto64289BB3_var)
// L3198
UnitRemove(autoBB4126D6_var)
// L3246
UnitRemove(lv_colonistShip)
// L379
UnitRemove(gv_infestationVirophageUnit[lp_colonyIndex])
// L387
UnitRemove(lv_u)
// L1585
UnitRemove(lv_colonist)
// L3377
UnitRemove(lv_carrionBirdLocal)
// L4207
UnitRemove(auto912DA5AD_var)
// L4663
UnitRemove(autoE0A85E97_var)
// L2425
UnitRemove(EventUnit())
// L2566
UnitRemove(gv_trainList[lv_trainIndex].lv_escorts[lv_i].lv_escort)