# Transport Property Of Unit

Grammar — Transport valueType|Property of inUnit
FlagsNative | Function

Returns the specified property for the specified unit.

# Arguments

Returns — int

native int UnitCargoValue(unit inUnit, int inValue);

Category: Unit / Cargo

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L361
UnitCargoValue(lp_transport, c_unitCargoUnitCount)
// L3031
UnitCargoValue(lv_dropship, c_unitCargoUnitCount)
// L1538
UnitCargoValue(lv_swannDropship, c_unitCargoUnitCount)
// L1092
UnitCargoValue(gv_medivac01, c_unitCargoUnitCount)
// L1096
UnitCargoValue(gv_medivac02, c_unitCargoUnitCount)
// L361
UnitCargoValue(lp_victim, c_unitCargoUnitCount)
// L369
UnitCargoValue(lp_victim, c_unitCargoUnitCount)
// L384
UnitCargoValue(lp_victim, c_unitCargoUnitCount)
// L396
UnitCargoValue(lp_victim, c_unitCargoUnitCount)
// L7106
UnitCargoValue(auto32CC1F95_var, c_unitCargoUnitCount)
// L7115
UnitCargoValue(auto24D559B3_var, c_unitCargoUnitCount)
// L7124
UnitCargoValue(autoC2EE9CF0_var, c_unitCargoUnitCount)
// L7133
UnitCargoValue(auto0E092536_var, c_unitCargoUnitCount)
// L7142
UnitCargoValue(auto9C9715B1_var, c_unitCargoUnitCount)
// L361
UnitCargoValue(lp_transport, c_unitCargoUnitCount)
// L3031
UnitCargoValue(lv_dropship, c_unitCargoUnitCount)
// L1538
UnitCargoValue(lv_swannDropship, c_unitCargoUnitCount)
// L1092
UnitCargoValue(gv_medivac01, c_unitCargoUnitCount)
// L1096
UnitCargoValue(gv_medivac02, c_unitCargoUnitCount)
// L361
UnitCargoValue(lp_victim, c_unitCargoUnitCount)
// L369
UnitCargoValue(lp_victim, c_unitCargoUnitCount)
// L384
UnitCargoValue(lp_victim, c_unitCargoUnitCount)
// L396
UnitCargoValue(lp_victim, c_unitCargoUnitCount)
// L7106
UnitCargoValue(auto32CC1F95_var, c_unitCargoUnitCount)
// L7115
UnitCargoValue(auto24D559B3_var, c_unitCargoUnitCount)
// L7124
UnitCargoValue(autoC2EE9CF0_var, c_unitCargoUnitCount)
// L7133
UnitCargoValue(auto0E092536_var, c_unitCargoUnitCount)
// L7142
UnitCargoValue(auto9C9715B1_var, c_unitCargoUnitCount)
// L1879
UnitCargoValue(auto1D1ECC95_var, c_unitCargoPosition)
// L1879
UnitCargoValue(UnitTransport(auto1D1ECC95_var), c_unitCargoUnitCount)
// L1879
UnitCargoValue(auto1D1ECC95_var, c_unitCargoPosition)
// L1879
UnitCargoValue(UnitTransport(auto1D1ECC95_var), c_unitCargoUnitCount)

# mods/core.sc2mod

TactTerrAI.galaxy

// L772
UnitCargoValue(aiUnit, c_unitCargoSpaceFree)
// L888
UnitCargoValue(aiUnit, c_unitCargoSpaceUsed)
// L895
UnitCargoValue(aiUnit, c_unitCargoSpaceFree)
// L1134
UnitCargoValue(aiUnit, c_unitCargoSpaceUsed)

# mods/liberty.sc2mod

LibertyLib.galaxy

// L1030
UnitCargoValue(lv_transportUnit, c_unitCargoSpaceTotal)
// L1039
UnitCargoValue(lv_transportUnit, c_unitCargoUnitCount)

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L2161
UnitCargoValue(lv_transportCurrent[lv_playerIter], c_unitCargoSpaceFree)
// L24813
UnitCargoValue(lv_bunker, c_unitCargoSpaceFree)

# mods/starcoop/starcoop.sc2mod

TactTerrAI.galaxy

// L748
UnitCargoValue(aiUnit, c_unitCargoSpaceFree)
// L860
UnitCargoValue(aiUnit, c_unitCargoSpaceFree)
// L1117
UnitCargoValue(aiUnit, c_unitCargoSpaceUsed)