# Make Unit Uncommandable
Grammar — Make unit option|Commandable/Uncommandable
Flags —Action
Makes a unit commandable or uncommandable.
# Arguments
unit
— Unitbool
[ preset::CommandableOption ] — Option
Returns — void
void libNtve_gf_MakeUnitUncommandable(
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
// L923
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L1059
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L908
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L885
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L1017
libNtve_gf_MakeUnitUncommandable(UnitFromId(290), true)
// L2653
libNtve_gf_MakeUnitUncommandable(lv_factory, false)
// L451
libNtve_gf_MakeUnitUncommandable(UnitFromId(109), true)
// L1570
libNtve_gf_MakeUnitUncommandable(lv_starport, false)
// L4944
libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true)
// L624
libNtve_gf_MakeUnitUncommandable(gv_p1DropshipA, true)
// L625
libNtve_gf_MakeUnitUncommandable(gv_p1DropshipB, true)
// L1532
libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true)
// L554
libNtve_gf_MakeUnitUncommandable(UnitFromId(317), true)
// L1018
libNtve_gf_MakeUnitUncommandable(gv_siegeTankDropship, true)
// L1590
libNtve_gf_MakeUnitUncommandable(gv_tHEONEDRILL, false)
// L697
libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true)
// L3014
libNtve_gf_MakeUnitUncommandable(lv_droppedBuilding, false)
// L2254
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, true)
// L2290
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, false)
// L3890
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, true)
// L3928
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, false)
// L5730
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, true)
// L9713
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, false)
// L1003
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L2837
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L2900
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L2963
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L3026
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L3063
libNtve_gf_MakeUnitUncommandable(gv_zeratul, false)
// L4976
libNtve_gf_MakeUnitUncommandable(gv_zeratul, false)
// L1017
libNtve_gf_MakeUnitUncommandable(UnitFromId(290), true)
// L2653
libNtve_gf_MakeUnitUncommandable(lv_factory, false)
// L451
libNtve_gf_MakeUnitUncommandable(UnitFromId(109), true)
// L1570
libNtve_gf_MakeUnitUncommandable(lv_starport, false)
// L4944
libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true)
// L624
libNtve_gf_MakeUnitUncommandable(gv_p1DropshipA, true)
// L625
libNtve_gf_MakeUnitUncommandable(gv_p1DropshipB, true)
// L1532
libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true)
// L554
libNtve_gf_MakeUnitUncommandable(UnitFromId(317), true)
// L1018
libNtve_gf_MakeUnitUncommandable(gv_siegeTankDropship, true)
// L1590
libNtve_gf_MakeUnitUncommandable(gv_tHEONEDRILL, false)
// L697
libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true)
// L3014
libNtve_gf_MakeUnitUncommandable(lv_droppedBuilding, false)
// L2254
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, true)
// L2290
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, false)
// L3890
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, true)
// L3928
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, false)
// L5730
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, true)
// L9713
libNtve_gf_MakeUnitUncommandable(gv_tHEONEZERATUL, false)
// L1003
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L2837
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L2900
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L2963
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L3026
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L3063
libNtve_gf_MakeUnitUncommandable(gv_zeratul, false)
// L4976
libNtve_gf_MakeUnitUncommandable(gv_zeratul, false)
// L923
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L1059
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L908
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L885
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L983
libNtve_gf_MakeUnitUncommandable(UnitFromId(161), true)
// L1951
libNtve_gf_MakeUnitUncommandable(gv_zeratul, false)
// L3481
libNtve_gf_MakeUnitUncommandable(gv_zeratul, true)
// L9150
libNtve_gf_MakeUnitUncommandable(gv_zeratul, false)
// L2811
libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), true)
// L2816
libNtve_gf_MakeUnitUncommandable(UnitLastCreated(), false)
// L2663
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, true)
// L7605
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, false)
// L1032
libNtve_gf_MakeUnitUncommandable(lp_cHOSEN_UNIT, false)
// L2611
libNtve_gf_MakeUnitUncommandable(gv_tHE_ONE_QUEEN, true)
// L2618
libNtve_gf_MakeUnitUncommandable(gv_tHE_ONE_QUEEN, false)
// L2869
libNtve_gf_MakeUnitUncommandable(gv_tHE_ONE_QUEEN, true)
// L2876
libNtve_gf_MakeUnitUncommandable(gv_tHE_ONE_QUEEN, false)
// L3252
libNtve_gf_MakeUnitUncommandable(gv_tHE_ONE_URSADON, true)
// L3263
libNtve_gf_MakeUnitUncommandable(gv_tHE_ONE_URSADON, false)
// L2076
libNtve_gf_MakeUnitUncommandable(gv_stukov, true)
// L2084
libNtve_gf_MakeUnitUncommandable(gv_stukov, false)
// L604
libNtve_gf_MakeUnitUncommandable(gv_dEHAKA, false)
// L613
libNtve_gf_MakeUnitUncommandable(gv_dEHAKA, true)
// L991
libNtve_gf_MakeUnitUncommandable(lp_unit, true)
// L2657
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, true)
// L2670
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, false)
// L3361
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, true)
// L3375
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, false)
// L371
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, false)
// L2753
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, true)
// L3571
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, false)
// L3287
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, true)
// L3294
libNtve_gf_MakeUnitUncommandable(gv_kerrigan, false)
// L1220
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), true)
// L1230
libNtve_gf_MakeUnitUncommandable(libNtve_gf_LastReplacedUnit(), true)
// L1243
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L2174
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), true)
// L2184
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), true)
// L2199
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L2204
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L1075
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), true)
// L1085
libNtve_gf_MakeUnitUncommandable(libNtve_gf_LastReplacedUnit(), true)
// L1098
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), false)
// L870
libNtve_gf_MakeUnitUncommandable(UnitGroupLoopCurrent(), true)