# Transport Property Of Unit
Grammar — Transport valueType|Property of inUnit
Flags —Native
|Function
Returns the specified property for the specified unit.
# Arguments
unit
— Unitint
[ preset::TransportProperty ] — Value Type
Returns — int
native int UnitCargoValue(unit inUnit, int inValue);
# Related
Category: Unit / Cargo
- [F] —
void
— Put Unit InTransport — ( UnitPutInTransport ) - [F] —
void
— Create Cargo Units — ( UnitCargoCreate ) - [F] —
unit
— Last Created Cargo Unit — ( UnitCargoLastCreated ) - [F] —
unitgroup
— Last Created Cargo Units — ( UnitCargoLastCreatedGroup ) - [F] —
bool
— Unit Is Cargo — ( libNtve_gf_UnitIsInsideTransport ) - [F] —
bool
— Unit Is Inside Unit Transport — ( libNtve_gf_UnitIsInsideUnitTransport ) - [F] —
bool
— Unit Is Inside Player Transport — ( libNtve_gf_UnitIsInsidePlayerTransport ) - [F] —
unit
— Cargo Unit In Transport — ( UnitCargo ) - [F] —
unitgroup
— Cargo Units In Transport — ( UnitCargoGroup ) - [F] —
int
— Transport Property Of Unit — ( UnitCargoValue ) - [F] —
unit
— Transport Of Unit — ( UnitTransport ) - [F] —
void
— Unit Loads/Unloads Cargo — ( TriggerAddEventUnitCargo ) - [F] —
unit
— Triggering Cargo Unit — ( EventUnitCargo )
# Examples
# campaigns/liberty.sc2campaign
// 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
// L772
UnitCargoValue(aiUnit, c_unitCargoSpaceFree)
// L888
UnitCargoValue(aiUnit, c_unitCargoSpaceUsed)
// L895
UnitCargoValue(aiUnit, c_unitCargoSpaceFree)
// L1134
UnitCargoValue(aiUnit, c_unitCargoSpaceUsed)
# mods/liberty.sc2mod
// L1030
UnitCargoValue(lv_transportUnit, c_unitCargoSpaceTotal)
// L1039
UnitCargoValue(lv_transportUnit, c_unitCargoUnitCount)
# mods/starcoop/starcoop.sc2mod
// L2161
UnitCargoValue(lv_transportCurrent[lv_playerIter], c_unitCargoSpaceFree)
// L24813
UnitCargoValue(lv_bunker, c_unitCargoSpaceFree)
# mods/starcoop/starcoop.sc2mod
// L748
UnitCargoValue(aiUnit, c_unitCargoSpaceFree)
// L860
UnitCargoValue(aiUnit, c_unitCargoSpaceFree)
// L1117
UnitCargoValue(aiUnit, c_unitCargoSpaceUsed)