# Put Unit InTransport
Grammar — Put inUnit Into Transport inTransport
Flags —Native
|Action
# Arguments
unit
— Unitunit
— Transport
Returns — void
native void UnitPutInTransport(
unit inUnit,
unit inTransport,
);
# Related
Category: Unit / Cargo
- Put Unit InTransport —
void
— UnitPutInTransport - Create Cargo Units —
void
— UnitCargoCreate - Last Created Cargo Unit —
unit
— UnitCargoLastCreated - Last Created Cargo Units —
unitgroup
— UnitCargoLastCreatedGroup - Unit Is Cargo —
bool
— libNtve_gf_UnitIsInsideTransport - Unit Is Inside Unit Transport —
bool
— libNtve_gf_UnitIsInsideUnitTransport - Unit Is Inside Player Transport —
bool
— libNtve_gf_UnitIsInsidePlayerTransport - Cargo Unit In Transport —
unit
— UnitCargo - Cargo Units In Transport —
unitgroup
— UnitCargoGroup - Transport Property Of Unit —
int
— UnitCargoValue - Transport Of Unit —
unit
— UnitTransport - Unit Loads/Unloads Cargo —
void
— TriggerAddEventUnitCargo - Triggering Cargo Unit —
unit
— EventUnitCargo
# Examples
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15834
PlayerGroupRemove(lv_alliedPlayersAnnouncementGroup, lv_medicPlayer);
if ((EventUnitCreatedAbil() == "MedicMedivacDropship")) {
UnitPutInTransport(lv_medic, lv_dropship);
}
mods/heromods/dva.stormmod — base.stormdata/LibHDVA.galaxy:312
UnitRevive(lv_dVaPilotUnit);
libNtve_gf_ShowHideUnit(lv_dVaPilotUnit, true);
UnitPutInTransport(lv_dVaPilotUnit, lv_dVaMechUnit);
libNtve_gf_MakeUnitUncommandable(lv_dVaMechUnit, true);
UnitSetState(lv_dVaPilotUnit, c_unitStateStatusBar, true);
mods/heromods/dva.stormmod — base.stormdata/LibHDVA.galaxy:1203
lv_dVaPilotUnit = EventUnit();
lv_dVaPlayer = UnitGetOwner(lv_dVaPilotUnit);
UnitPutInTransport(lv_dVaPilotUnit, libHDVA_gv_dVaCallMechMechBeingSummoned[lv_dVaPlayer]);
if ((PlayerHasTalent(lv_dVaPlayer, "DVaPilotCallMechMEKAfall") == true)) {
}