# Unit Type Property
Grammar — u|Unit Type property
Flags —Native
|Function
Returns a unit type property.
# Arguments
string
[ gamelink::Unit ] — Unitint
[ preset::unitFlag2 ] — Property
Returns — fixed
native fixed UnitTypeGetProperty(
string inUnitType,
int inProp,
);
# 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
// L6648
UnitTypeGetProperty(UnitGetType(lv_plane), c_unitPropMovementSpeed)
// L4522
UnitTypeGetProperty("BroodLord", c_unitPropMovementSpeed)
// L1923
UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed)
// L1951
UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed)
// L6648
UnitTypeGetProperty(UnitGetType(lv_plane), c_unitPropMovementSpeed)
// L4522
UnitTypeGetProperty("BroodLord", c_unitPropMovementSpeed)
// L1923
UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed)
// L1951
UnitTypeGetProperty("TarsonisEngine", c_unitPropMovementSpeed)
// L6068
UnitTypeGetProperty("Zergling", c_unitPropMovementSpeed)
// L1576
UnitTypeGetProperty("PrimalFlyer", c_unitPropMovementSpeed)
// L1579
UnitTypeGetProperty("PrimalHydralisk", c_unitPropMovementSpeed)
// L4640
UnitTypeGetProperty("PrimalFlyer", c_unitPropMovementSpeed)
// L6955
UnitTypeGetProperty("Mutalisk", c_unitPropHeight)
// L7085
UnitTypeGetProperty("Mutalisk", c_unitPropHeight)
// L343
UnitTypeGetProperty(UnitGetType(UnitLastCreated()), c_unitPropHeight)
// L409
UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight)
// L440
UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight)
// L1213
UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight)
// L4101
UnitTypeGetProperty("Viper", c_unitPropHeight)
// L2143
UnitTypeGetProperty("HotSTorrasque", c_unitPropMovementSpeed)
// L409
UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight)
// L440
UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight)
// L1213
UnitTypeGetProperty("MutaliskBroodlord", c_unitPropHeight)
// L4101
UnitTypeGetProperty("Viper", c_unitPropHeight)
// L2143
UnitTypeGetProperty("HotSTorrasque", c_unitPropMovementSpeed)
// L6068
UnitTypeGetProperty("Zergling", c_unitPropMovementSpeed)
// L1576
UnitTypeGetProperty("PrimalFlyer", c_unitPropMovementSpeed)
// L1579
UnitTypeGetProperty("PrimalHydralisk", c_unitPropMovementSpeed)
// L4640
UnitTypeGetProperty("PrimalFlyer", c_unitPropMovementSpeed)
// L6955
UnitTypeGetProperty("Mutalisk", c_unitPropHeight)
// L7085
UnitTypeGetProperty("Mutalisk", c_unitPropHeight)
// L343
UnitTypeGetProperty(UnitGetType(UnitLastCreated()), c_unitPropHeight)
// L600
UnitTypeGetProperty(UnitGetType(lp_pylon), c_unitPropShieldsRegen)
// L7261
UnitTypeGetProperty(UnitGetType(auto9B572609_var), c_unitPropShieldsRegen)
// L2088
UnitTypeGetProperty("WarpPrismGiant", c_unitPropHeight)
// L600
UnitTypeGetProperty(UnitGetType(lp_pylon), c_unitPropShieldsRegen)
// L7261
UnitTypeGetProperty(UnitGetType(auto9B572609_var), c_unitPropShieldsRegen)
// L2088
UnitTypeGetProperty("WarpPrismGiant", c_unitPropHeight)
# mods/starcoop/starcoop.sc2mod
// L1492
UnitTypeGetProperty(UnitGetType(lv_dropGroupUnitIter), c_unitPropHeight)
// L1546
UnitTypeGetProperty(UnitGetType(lv_indexAirUnit), c_unitPropHeight)
// L1555
UnitTypeGetProperty(UnitGetType(lv_indexGroundUnit), c_unitPropSuppliesUsed)
// L1809
UnitTypeGetProperty(UnitGetType(lv_dropUnit), c_unitPropHeight)
// L1886
UnitTypeGetProperty(UnitGetType(lv_airUnitIter), c_unitPropHeight)
// L1896
UnitTypeGetProperty(UnitGetType(lv_dropUnit), c_unitPropSuppliesUsed)
// L6269
UnitTypeGetProperty(lp_unitType, c_unitPropSuppliesUsed)
// L10105
UnitTypeGetProperty("DehakaNydusDestroyer", c_unitPropSuppliesUsed)
// L10107
UnitTypeGetProperty("DehakaNydusDestroyer", c_unitPropSuppliesUsed)
// L14480
UnitTypeGetProperty(UnitGetType(lv_unit), c_unitPropHeight)
# mods/starcoop/starcoop.sc2mod
// L505
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L508
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L528
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L553
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L558
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L597
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L602
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L665
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L674
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
// L701
UnitTypeGetProperty(UnitGetType(lp_killedUnit), c_unitPropSuppliesUsed)
# mods/warcoop/warmeleeai.sc2mod
// L42
UnitTypeGetProperty(unitId, c_unitPropSuppliesMade)
// L45
UnitTypeGetProperty(unitId, c_unitPropSuppliesUsed)