# Put Unit InTransport

Grammar — Put inUnit Into Transport inTransport
FlagsNative | Action

# Arguments

  • unit — Unit
  • unit — Transport

Returns — void

native void UnitPutInTransport(
	unit inUnit,
	unit inTransport,
);

Category: Unit / Cargo

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/GameDataHelperLib.galaxy:15834

    PlayerGroupRemove(lv_alliedPlayersAnnouncementGroup, lv_medicPlayer);
    if ((EventUnitCreatedAbil() == "MedicMedivacDropship")) {
        UnitPutInTransport(lv_medic, lv_dropship);
    }

mods/heromods/dva.stormmodbase.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.stormmodbase.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)) {
    }