# Unit Type Of Unit
Grammar — Unit type of u
Flags —Native
|Function
Returns the unit type for the specified unit.
# Arguments
unit
— Unit
Returns — string
[ gamelink::Unit ]
native string UnitGetType(unit inUnit);
# 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
// L257
UnitGetType(UnitGroupLoopCurrent())
// L480
UnitGetType(EventUnit())
// L691
UnitGetType(UnitLastCreated())
// L754
UnitGetType(EventUnit())
// L372
UnitGetType(UnitLastCreated())
// L1687
UnitGetType(EventUnit())
// L2604
UnitGetType(EventUnit())
// L2669
UnitGetType(EventUnit())
// L553
UnitGetType(EventUnit())
// L815
UnitGetType(EventUnit())
// L1762
UnitGetType(EventUnit())
// L996
UnitGetType(EventUnitProgressUnit())
// L603
UnitGetType(EventUnit())
// L603
UnitGetType(EventUnit())
// L603
UnitGetType(EventUnit())
// L603
UnitGetType(EventUnit())
// L880
UnitGetType(EventUnitProgressUnit())
// L912
UnitGetType(EventUnit())
// L951
UnitGetType(EventUnit())
// L951
UnitGetType(EventUnit())
// L951
UnitGetType(EventUnit())
// L951
UnitGetType(EventUnit())
// L2445
UnitGetType(EventUnit())
// L2445
UnitGetType(EventUnit())
// L2510
UnitGetType(EventUnit())
// L2510
UnitGetType(EventUnit())
// L242
UnitGetType(UnitGroupLoopCurrent())
// L469
UnitGetType(EventUnit())
// L740
UnitGetType(EventUnit())
// L278
UnitGetType(UnitLastCreated())
// L1596
UnitGetType(EventUnit())
// L1596
UnitGetType(EventUnit())
// L1596
UnitGetType(EventUnit())
// L2072
UnitGetType(UnitGroupLoopCurrent())
// L2072
UnitGetType(UnitGroupLoopCurrent())
// L2072
UnitGetType(UnitGroupLoopCurrent())
// L2590
UnitGetType(EventUnit())
// L2655
UnitGetType(EventUnit())
// L262
UnitGetType(UnitGroupLoopCurrent())
// L466
UnitGetType(EventUnit())
// L722
UnitGetType(EventUnit())
// L648
UnitGetType(lv_pickedUnit)
// L2734
UnitGetType(lp_unit)
// L2745
UnitGetType(UnitLastCreated())
// L2745
UnitGetType(UnitLastCreated())
// L2844
UnitGetType(lp_mob)
// L2873
UnitGetType(lp_mob)
// L4895
UnitGetType(EventUnit())
// L4978
UnitGetType(EventUnit())
// L5931
UnitGetType(EventUnit())
// L6648
UnitGetType(lv_plane)
// L1044
UnitGetType(EventUnitCargo())
// L1044
UnitGetType(EventUnitCargo())
// L1054
UnitGetType(EventUnitCargo())
// L1074
UnitGetType(EventUnitCargo())
// L1311
UnitGetType(EventUnit())
// L1473
UnitGetType(EventUnit())
// L1509
UnitGetType(autoEAEE2387_var)
// L1509
UnitGetType(autoEAEE2387_var)
// L1509
UnitGetType(autoEAEE2387_var)
// L1509
UnitGetType(autoEAEE2387_var)
// L292
UnitGetType(lp_u)
// L597
UnitGetType(auto6A6C64E5_var)
// L597
UnitGetType(auto6A6C64E5_var)
// L980
UnitGetType(auto2AA8063C_var)
// L980
UnitGetType(auto2AA8063C_var)
// L980
UnitGetType(auto2AA8063C_var)
// L1266
UnitGetType(EventUnit())
// L1316
UnitGetType(EventUnit())
// L1358
UnitGetType(EventUnit())
// L1358
UnitGetType(EventUnit())
// L1052
UnitGetType(EventUnit())
// L1104
UnitGetType(EventUnit())
// L1264
UnitGetType(EventUnit())
// L1368
UnitGetType(EventUnit())
// L1478
UnitGetType(EventUnit())
// L1592
UnitGetType(EventUnit())
// L1699
UnitGetType(EventUnit())
// L2812
UnitGetType(EventUnitProgressUnit())
// L2812
UnitGetType(EventUnitProgressUnit())
// L2812
UnitGetType(EventUnitProgressUnit())
// L399
UnitGetType(lp_unit)
// L421
UnitGetType(lp_unit)
// L784
UnitGetType(lv_virophage)
// L1372
UnitGetType(EventUnit())
// L1493
UnitGetType(EventUnitProgressUnit())
// L1554
UnitGetType(EventUnitProgressUnit())
// L1651
UnitGetType(EventUnit())
// L2072
UnitGetType(UnitLastCreated())
// L2184
UnitGetType(lv_virophage)
// L2337
UnitGetType(EventUnit())
// L1925
UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar])
// L1925
UnitGetType(gv_trainList[lv_trainsToSpawn[lv_i]].lv_trainCars[lv_currentCar])
// L2138
UnitGetType(auto005D2B42_var)
// L2138
UnitGetType(auto005D2B42_var)
// L2138
UnitGetType(auto005D2B42_var)
// L2138
UnitGetType(auto005D2B42_var)
// L2261
UnitGetType(EventUnit())
// L2261
UnitGetType(EventUnit())
// L2261
UnitGetType(EventUnit())