# Unit Is Cargo
Grammar — u is cargo
Flags —Function
Returns true if the specified unit is considered a cargo unit.
# Arguments
unit
— Unit
Returns — bool
bool libNtve_gf_UnitIsInsideTransport(unit lp_u);
# 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
// L660
libNtve_gf_UnitIsInsideTransport(lp_cargo)
// L660
libNtve_gf_UnitIsInsideTransport(lp_cargo)
// L4524
libNtve_gf_UnitIsInsideTransport(autoC351DCC5_var)
// L4606
libNtve_gf_UnitIsInsideTransport(auto11392D0A_var)
// L4524
libNtve_gf_UnitIsInsideTransport(autoC351DCC5_var)
// L4606
libNtve_gf_UnitIsInsideTransport(auto11392D0A_var)
// L1878
libNtve_gf_UnitIsInsideTransport(auto1D1ECC95_var)
// L2015
libNtve_gf_UnitIsInsideTransport(auto05AF8105_var)
// L2028
libNtve_gf_UnitIsInsideTransport(auto9B8D08C5_var)
// L1878
libNtve_gf_UnitIsInsideTransport(auto1D1ECC95_var)
// L2015
libNtve_gf_UnitIsInsideTransport(auto05AF8105_var)
// L2028
libNtve_gf_UnitIsInsideTransport(auto9B8D08C5_var)
# mods/heroesdata.stormmod
// L14077
libNtve_gf_UnitIsInsideTransport(lv_vikingCargoUnit)
// L16117
libNtve_gf_UnitIsInsideTransport(libGame_gv_players[lv_cargoPlayer].lv_heroUnit)
// L20174
libNtve_gf_UnitIsInsideTransport(libGame_gv_players[libGame_gf_HeroEnteredTransportPlayerEntering()].lv_activeVehicle)
// L20174
libNtve_gf_UnitIsInsideTransport(libGame_gv_players[libGame_gf_HeroEnteredTransportPlayerEntering()].lv_heroUnit)
# mods/heroesdata.stormmod
// L16200
libNtve_gf_UnitIsInsideTransport(lv_heroUnit)
// L21198
libNtve_gf_UnitIsInsideTransport(libGame_gv_players[lv_player].lv_heroUnit)
// L21255
libNtve_gf_UnitIsInsideTransport(libGame_gv_players[lv_player].lv_heroUnit)
# mods/heroesdata.stormmod
// L7110
libNtve_gf_UnitIsInsideTransport(lv_targetUnit)
# mods/heromods/dva.stormmod
// L442
libNtve_gf_UnitIsInsideTransport(lv_pilotUnit)
// L1658
libNtve_gf_UnitIsInsideTransport(lv_dVaUnit)
// L1693
libNtve_gf_UnitIsInsideTransport(lv_dVaPilot)
// L1791
libNtve_gf_UnitIsInsideTransport(lv_dVaHeroUnit)
# mods/heromods/samuro.stormmod
// L645
libNtve_gf_UnitIsInsideTransport(lv_samuroCargoUnit)
# mods/novastoryassets.sc2mod
// L5673
libNtve_gf_UnitIsInsideTransport(UnitGroupLoopCurrent())
// L1098
libNtve_gf_UnitIsInsideTransport(gv_cinematicNova)
// L1133
libNtve_gf_UnitIsInsideTransport(gv_cinematicNova)
// L1199
libNtve_gf_UnitIsInsideTransport(lp_tank)
// L2188
libNtve_gf_UnitIsInsideTransport(lv_infestedSiegeTank)
// L4294
libNtve_gf_UnitIsInsideTransport(UnitGroupLoopCurrent())
// L4310
libNtve_gf_UnitIsInsideTransport(UnitGroupLoopCurrent())
// L4331
libNtve_gf_UnitIsInsideTransport(UnitGroupLoopCurrent())
// L5673
libNtve_gf_UnitIsInsideTransport(UnitGroupLoopCurrent())
// L1098
libNtve_gf_UnitIsInsideTransport(gv_cinematicNova)
// L1133
libNtve_gf_UnitIsInsideTransport(gv_cinematicNova)
// L1199
libNtve_gf_UnitIsInsideTransport(lp_tank)
// L2188
libNtve_gf_UnitIsInsideTransport(lv_infestedSiegeTank)
// L4294
libNtve_gf_UnitIsInsideTransport(UnitGroupLoopCurrent())
// L4310
libNtve_gf_UnitIsInsideTransport(UnitGroupLoopCurrent())
// L4331
libNtve_gf_UnitIsInsideTransport(UnitGroupLoopCurrent())
# mods/starcoop/starcoop.sc2mod
// L33196
libNtve_gf_UnitIsInsideTransport(lv_indexUnit)