# Make Unit Invulnerable
Grammar — Make unit option|Vulnerable/Invulnerable
Flags —Action
Makes a unit vulnerable or invulnerable.
# Arguments
unit
— Unitbool
[ preset::VulnerableInvulnerableOption ] — Option
Returns — void
void libNtve_gf_MakeUnitInvulnerable(
unit lp_unit,
bool lp_option,
);
# Related
Category: Unit / Properties
- [F] —
string
[ gamelink::Unit ] — Unit Type Of Unit — ( UnitGetType ) - [F] —
int
— Unit Tag — ( UnitGetTag ) - [F] —
int
— Unit Seed — ( UnitGetSeed ) - [F] —
void
— Unit Property Changes — ( TriggerAddEventUnitProperty ) - [F] —
int
[ preset::Unit_Property ] — Triggering Unit Property — ( EventUnitProperty ) - [F] —
int
— Triggering Unit Property Change (Integer) — ( EventUnitPropertyChangeInt ) - [F] —
fixed
— Triggering Unit Property Change (Real) — ( EventUnitPropertyChangeFixed ) - [F] —
void
— Set Unit Property — ( UnitSetPropertyFixed ) - [F] —
void
— Set Unit State — ( UnitSetState ) - [F] —
void
— Set Unit Seed — ( UnitSetSeed ) - [F] —
void
— Reset Unit Seed — ( UnitResetSeed ) - [F] —
void
— Make Unit Invulnerable — ( libNtve_gf_MakeUnitInvulnerable ) - [F] —
void
— Make Unit Uncommandable — ( libNtve_gf_MakeUnitUncommandable ) - [F] —
fixed
— Unit Property — ( UnitGetPropertyFixed ) - [F] —
int
— Unit Property (Int) — ( UnitGetPropertyInt ) - [F] —
fixed
— Unit Type Property — ( UnitTypeGetProperty ) - [F] —
bool
— Unit Classification Check — ( UnitTestState ) - [F] —
bool
— Unit Type Classification Check — ( UnitTypeTestFlag ) - [F] —
bool
— Unit Type Attribute Check — ( UnitTypeTestAttribute ) - [F] —
bool
— Unit Targetable Check — ( UnitTestPlane ) - [F] —
bool
— Unit Is Invulnerable — ( libNtve_gf_UnitIsInvulnerable ) - [F] —
int
— Unit Kills — ( libNtve_gf_UnitGetPropertyKills ) - [F] —
int
— Unit Resources — ( libNtve_gf_UnitGetPropertyResources ) - [F] —
point
— Unit Attachment Point — ( UnitGetAttachmentPoint ) - [F] —
text
— Name Of Unit Type — ( UnitTypeGetName ) - [F] —
string
— Gender Code Of Unit Type — ( UnitTypeGetGenderCode ) - [F] —
int
— Unit Type Cost — ( UnitTypeGetCost ) - [F] —
bool
— Unit Type Is Affected By Upgrade — ( UnitTypeIsAffectedByUpgrade ) - [F] —
void
— Reset Movement Speed — ( UnitResetSpeed ) - [F] —
bool
— Unit Uses Mover — ( UnitMoverExists ) - [F] —
bool
— Unit Type Uses Mover — ( libNtve_gf_UnitMoverExists ) - [F] —
string
[ gamelink::Unit ] — Unit Type From String — ( UnitTypeFromString ) - [F] —
void
— Set Unit Color — ( UnitSetTeamColorIndex ) - [F] —
void
— Set Unit Info Button - Ability Tooltip — ( libNtve_gf_SetUnitInfoButtonAbilityTooltip ) - [F] —
void
— Set Unit Info Button - Button Tooltip — ( libNtve_gf_SetUnitInfoButtonButtonTooltip ) - [F] —
void
— Set Unit Info Button - Item Tooltip — ( libNtve_gf_SetUnitInfoButtonItemTooltip ) - [F] —
void
— Reset Unit Info Button - Ability Tooltip — ( libNtve_gf_ResetUnitInfoButtonAbilityTooltip ) - [F] —
void
— Reset Unit Info Button - Button Tooltip — ( libNtve_gf_ResetUnitInfoButtonButtonTooltip ) - [F] —
void
— Reset Unit Info Button - Item Tooltip — ( libNtve_gf_ResetUnitInfoButtonItemTooltip ) - [F] —
void
— Set Unit Command Button Tooltip — ( UnitSetInfoButtonTooltip ) - [F] —
void
— Reset Unit Command Button Tooltip — ( UnitClearInfoButtonTooltip ) - [F] —
void
— Set Unit Highlight Cursor — ( UnitSetCursor ) - [F] —
void
— Set Unit Ping Cursor — ( UnitSetPingCursor ) - [F] —
void
— Set Unit Info — ( UnitSetInfoText ) - [F] —
void
— Set Unit Info Text — ( UnitSetInfoText2 ) - [F] —
void
— Set Unit Info Tip — ( UnitSetInfoTip ) - [F] —
void
— Set Unit Info SubTip — ( UnitSetInfoSubTip ) - [F] —
void
— Clear Unit Info — ( UnitClearInfoText ) - [F] —
void
— Set Unit Status Bar State (Deprecated) — ( UnitForceStatusBar ) - [F] —
void
— Show Unit Status Bar — ( UnitStatusBarOverride ) - [F] —
void
— Hide Unit Status Bar — ( UnitStatusBarClearOverride ) - [F] —
void
— Set Unit Scale — ( UnitSetScale ) - [F] —
void
— Set Unit Model Variation — ( libNtve_gf_UnitSetVariation ) - [F] —
void
— Change Unit Height — ( UnitSetHeight ) - [F] —
fixed
— Height Of Unit — ( UnitGetHeight ) - [F] —
void
— Change Unit Damage — ( libNtve_gf_ChangeUnitDamage ) - [F] —
unit
— Add On Child — ( UnitAddOnChild ) - [F] —
unit
— Add On Parent — ( UnitAddOnParent )
# Examples
# campaigns/liberty.sc2campaign
// L924
libNtve_gf_MakeUnitInvulnerable(UnitGroupLoopCurrent(), true)
// L741
libNtve_gf_MakeUnitInvulnerable(UnitGroupLoopCurrent(), true)
// L872
libNtve_gf_MakeUnitInvulnerable(UnitGroupLoopCurrent(), true)
// L932
libNtve_gf_MakeUnitInvulnerable(UnitGroupLoopCurrent(), true)
// L627
libNtve_gf_MakeUnitInvulnerable(gv_viking, true)
// L3167
libNtve_gf_MakeUnitInvulnerable(gv_viking, true)
// L4754
libNtve_gf_MakeUnitInvulnerable(gv_viking, true)
// L5225
libNtve_gf_MakeUnitInvulnerable(gv_boss, true)
// L5229
libNtve_gf_MakeUnitInvulnerable(gv_boss, false)
// L5265
libNtve_gf_MakeUnitInvulnerable(gv_viking, true)
// L5675
libNtve_gf_MakeUnitInvulnerable(gv_boss, true)
// L5680
libNtve_gf_MakeUnitInvulnerable(gv_boss, false)
// L5747
libNtve_gf_MakeUnitInvulnerable(gv_viking, true)
// L7783
libNtve_gf_MakeUnitInvulnerable(gv_viking, false)
// L3824
libNtve_gf_MakeUnitInvulnerable(lv_unit, true)
// L5067
libNtve_gf_MakeUnitInvulnerable(UnitFromId(1403), true)
// L5068
libNtve_gf_MakeUnitInvulnerable(UnitFromId(698), true)
// L5069
libNtve_gf_MakeUnitInvulnerable(UnitFromId(693), true)
// L5070
libNtve_gf_MakeUnitInvulnerable(UnitFromId(1483), true)
// L5889
libNtve_gf_MakeUnitInvulnerable(UnitLastCreated(), true)
// L6292
libNtve_gf_MakeUnitInvulnerable(autoD4CD02CB_var, false)
// L6338
libNtve_gf_MakeUnitInvulnerable(UnitFromId(693), true)
// L2652
libNtve_gf_MakeUnitInvulnerable(lv_factory, false)
// L614
libNtve_gf_MakeUnitInvulnerable(gv_purifier, true)
// L1129
libNtve_gf_MakeUnitInvulnerable(gv_purifier, false)
// L3201
libNtve_gf_MakeUnitInvulnerable(lv_colonistShip, true)
// L3318
libNtve_gf_MakeUnitInvulnerable(lv_colonistShip, true)
// L3435
libNtve_gf_MakeUnitInvulnerable(lv_colonistShip, true)
// L5987
libNtve_gf_MakeUnitInvulnerable(gv_purifier, false)
// L5765
libNtve_gf_MakeUnitInvulnerable(UnitFromId(90), true)
// L437
libNtve_gf_MakeUnitInvulnerable(autoD9E2A2C7_var, true)
// L444
libNtve_gf_MakeUnitInvulnerable(gv_odin, true)
// L450
libNtve_gf_MakeUnitInvulnerable(UnitFromId(109), true)
// L467
libNtve_gf_MakeUnitInvulnerable(UnitFromId(341), true)
// L468
libNtve_gf_MakeUnitInvulnerable(UnitFromId(935), true)
// L487
libNtve_gf_MakeUnitInvulnerable(UnitFromId(835), true)
// L1183
libNtve_gf_MakeUnitInvulnerable(UnitFromId(4), true)
// L1569
libNtve_gf_MakeUnitInvulnerable(lv_starport, false)
// L1834
libNtve_gf_MakeUnitInvulnerable(UnitFromId(835), false)
// L4441
libNtve_gf_MakeUnitInvulnerable(UnitFromId(2), true)
// L921
libNtve_gf_MakeUnitInvulnerable(autoF69A218C_var, true)
// L948
libNtve_gf_MakeUnitInvulnerable(auto604BE6FC_var, true)
// L2758
libNtve_gf_MakeUnitInvulnerable(gv_odin, true)
// L2814
libNtve_gf_MakeUnitInvulnerable(lv_dropship, true)
// L4570
libNtve_gf_MakeUnitInvulnerable(gv_odin, true)
// L893
libNtve_gf_MakeUnitInvulnerable(gv_warbot, true)
// L900
libNtve_gf_MakeUnitInvulnerable(UnitFromId(162), true)
// L901
libNtve_gf_MakeUnitInvulnerable(UnitFromId(202), true)
// L902
libNtve_gf_MakeUnitInvulnerable(UnitFromId(298), true)
// L904
libNtve_gf_MakeUnitInvulnerable(UnitFromId(2658), true)
// L905
libNtve_gf_MakeUnitInvulnerable(UnitFromId(282), true)
// L906
libNtve_gf_MakeUnitInvulnerable(UnitFromId(421), true)
// L907
libNtve_gf_MakeUnitInvulnerable(UnitFromId(427), true)
// L2333
libNtve_gf_MakeUnitInvulnerable(UnitFromId(202), true)
// L2367
libNtve_gf_MakeUnitInvulnerable(UnitFromId(421), true)
// L2653
libNtve_gf_MakeUnitInvulnerable(auto7C99916A_var, false)
// L634
libNtve_gf_MakeUnitInvulnerable(UnitFromId(258), true)
// L5524
libNtve_gf_MakeUnitInvulnerable(lv_nydusWorm, true)
// L5585
libNtve_gf_MakeUnitInvulnerable(lv_nydusWorm, true)
// L5647
libNtve_gf_MakeUnitInvulnerable(lv_nydusWorm, true)
// L5709
libNtve_gf_MakeUnitInvulnerable(lv_nydusWorm, true)
// L5775
libNtve_gf_MakeUnitInvulnerable(lv_nydusWorm, true)
// L412
libNtve_gf_MakeUnitInvulnerable(UnitFromId(660), true)
// L2038
libNtve_gf_MakeUnitInvulnerable(lv_dropship, true)
// L827
libNtve_gf_MakeUnitInvulnerable(gv_victoryTerrazine, true)
// L713
libNtve_gf_MakeUnitInvulnerable(UnitFromId(922), true)
// L724
libNtve_gf_MakeUnitInvulnerable(UnitFromId(120), true)
// L728
libNtve_gf_MakeUnitInvulnerable(UnitFromId(126), true)
// L785
libNtve_gf_MakeUnitInvulnerable(gv_ghostEMP, true)
// L1728
libNtve_gf_MakeUnitInvulnerable(gv_ghostEMP, false)
// L1771
libNtve_gf_MakeUnitInvulnerable(gv_ghostEMP, false)
// L626
libNtve_gf_MakeUnitInvulnerable(gv_p1DropshipA, true)
// L627
libNtve_gf_MakeUnitInvulnerable(gv_p1DropshipB, true)
// L632
libNtve_gf_MakeUnitInvulnerable(gv_p1Gate, true)
// L654
libNtve_gf_MakeUnitInvulnerable(gv_p2Gate, true)
// L882
libNtve_gf_MakeUnitInvulnerable(gv_nova, false)
// L2221
libNtve_gf_MakeUnitInvulnerable(gv_nova, true)
// L2701
libNtve_gf_MakeUnitInvulnerable(UnitLastCreated(), true)
// L2709
libNtve_gf_MakeUnitInvulnerable(UnitLastCreated(), true)
// L3024
libNtve_gf_MakeUnitInvulnerable(UnitLastCreated(), true)
// L3667
libNtve_gf_MakeUnitInvulnerable(gv_nova, true)
// L1017
libNtve_gf_MakeUnitInvulnerable(UnitFromId(18), true)
// L439
libNtve_gf_MakeUnitInvulnerable(gv_artifact, true)
// L1019
libNtve_gf_MakeUnitInvulnerable(gv_siegeTankDropship, true)
// L4354
libNtve_gf_MakeUnitInvulnerable(gv_tHEONEDRILL, true)
// L4438
libNtve_gf_MakeUnitInvulnerable(gv_tHEONEDRILL, true)
// L5405
libNtve_gf_MakeUnitInvulnerable(gv_tHEONEDOOR, false)
// L3013
libNtve_gf_MakeUnitInvulnerable(lv_droppedBuilding, false)
// L1002
libNtve_gf_MakeUnitInvulnerable(autoAFDCFCA0_var, true)
// L1012
libNtve_gf_MakeUnitInvulnerable(autoB75E5DB3_var, true)
// L1110
libNtve_gf_MakeUnitInvulnerable(auto2DAE3571_var, true)
// L1129
libNtve_gf_MakeUnitInvulnerable(autoE74E054F_var, true)
// L1262
libNtve_gf_MakeUnitInvulnerable(auto9F604E0D_var, true)
// L1271
libNtve_gf_MakeUnitInvulnerable(auto784E091D_var, true)
// L1280
libNtve_gf_MakeUnitInvulnerable(autoC8A10612_var, true)
// L2937
libNtve_gf_MakeUnitInvulnerable(auto94BC3365_var, false)
// L2949
libNtve_gf_MakeUnitInvulnerable(autoB621D0A9_var, false)
// L3637
libNtve_gf_MakeUnitInvulnerable(auto68468496_var, false)
// L3375
libNtve_gf_MakeUnitInvulnerable(gv_kerrigan, true)
// L3422
libNtve_gf_MakeUnitInvulnerable(gv_kerrigan, true)