# Unit Type Property

Grammaru|Unit Type property
FlagsNative | Function

Returns a unit type property.

# Arguments

  • string [ gamelink::Unit ] — Unit
  • int [ preset::unitFlag2 ] — Property

Returns — fixed

native fixed UnitTypeGetProperty(
	string inUnitType,
	int inProp,
);

Category: Unit / Properties

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// 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

LibCOMI.galaxy

// 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

LibCOMU.galaxy

// 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

Common_ai.galaxy

// L42
UnitTypeGetProperty(unitId, c_unitPropSuppliesMade)
// L45
UnitTypeGetProperty(unitId, c_unitPropSuppliesUsed)