class CargoBase
CargoBase › Managed
represents base for cargo storage for entities
@NOTE: rows == y axis
Methods 16
proto native EntityAI GetCargoOwner()get the entity that owns the cargo
Returns: cargo owner
proto native int GetOwnerCargoIndex()get index of this cargo in the entity that owns the cargo
Returns: owner's index of this cargo
Referenced by VicinityContainer.UpdateInterval()
proto native bool IsProxyCargo()Returns: true if cargo is in proxy object
proto native int GetItemCount()Returns: number of items in cargo
Referenced by ActionPackGift.ActionCondition(), ActionTargetsCursor.AttachmentsWithInventoryOrCargoCount(), ActionUnpackGift.OnFinishProgressServer()
Show 44 more
, AnniversaryBox.EmtpyInventory(), Barrel_ColorBase.BleachClothes(), Barrel_ColorBase.ColourClothes(), Barrel_ColorBase.ColourLeatherClothes(), Barrel_ColorBase.OnFreezeStateChangeServer(), Barrel_ColorBase.TanPelts(), Bottle_Base.OnFreezeStateChangeServer(), CachedEquipmentStorage.ProcessCargo(), CargoContainer.AddedToCargoEx(), CargoContainer.GetCargoCapacity(), CargoContainer.GetIcon(), CargoContainer.RemovedFromCargo(), CargoContainer.SetEntity(), ContainerWithCargo.DraggingOverGrid(), ContainerWithCargo.DropReceived(), ContainerWithCargoAndAttachments.DropReceived(), Cooking.CookWithEquipment(), Cooking.GetCookingMethodWithTimeOverride(), Cooking.GetItemTypeFromCargo(), Cooking.TerminateCookingSounds(), DayZPlayerInventory.SendRepairToClientDst(), EntityAI.FixEntity(), EntityAI.GetInventoryAndCargoWeight(), EntityAI.HasAnyCargo(), Environment.BodyPartHeatProperties(), Environment.ProcessCargoAttributes(), FireplaceBase.BurnItemsInFireplace(), FireplaceBase.IsCargoEmpty(), FireplaceBase.IsEmpty(), FireplaceBase.StopCooling(), HandsContainer.DropReceived(), ItemBase.CanReceiveAttachment(), ItemBase.DamageItemInCargo(), ItemBase.EEHealthLevelChanged(), ItemBase.GetNumberOfItems(), MiscGameplayFunctions.ThrowAllItemsInInventoryEx(), NBCPack_ColorBase.CanReceiveAttachment(), PlateCarrierPouches.CanLoadItemIntoCargo(), PlateCarrierPouches.CanReceiveItemIntoCargo(), PlayerBase.GetMagazineToReload(), PluginInventoryRepair.MoveItemToCorrectPosition(), TentBase.CanBePacked(), UndergroundStash.GetStashedItem(), and UniversalTemperatureSourceLambdaBaseImpl.UpdateVicinityTemperatureRecursive()Returns: get item at specific index
Referenced by ActionUnpackGift.OnFinishProgressServer(), AnniversaryBox.EmtpyInventory(), Barrel_ColorBase.BleachClothes()
Show 27 more
, Barrel_ColorBase.ColourClothes(), Barrel_ColorBase.ColourLeatherClothes(), Barrel_ColorBase.OnFreezeStateChangeServer(), Barrel_ColorBase.TanPelts(), Bottle_Base.OnFreezeStateChangeServer(), CachedEquipmentStorage.ProcessCargo(), CargoContainer.AddedToCargoEx(), CargoContainer.GetIcon(), CargoContainer.RemovedFromCargo(), CargoContainer.SetEntity(), Cooking.CookWithEquipment(), Cooking.GetItemTypeFromCargo(), Cooking.TerminateCookingSounds(), DayZPlayerInventory.SendRepairToClientDst(), EntityAI.FixEntity(), EntityAI.GetInventoryAndCargoWeight(), Environment.BodyPartHeatProperties(), Environment.ProcessCargoAttributes(), FireplaceBase.BurnItemsInFireplace(), FireplaceBase.StopCooling(), ItemBase.DamageItemInCargo(), ItemBase.EEHealthLevelChanged(), MiscGameplayFunctions.ThrowAllItemsInInventoryEx(), PlayerBase.GetMagazineToReload(), PluginInventoryRepair.MoveItemToCorrectPosition(), UndergroundStash.GetStashedItem(), and UniversalTemperatureSourceLambdaBaseImpl.UpdateVicinityTemperatureRecursive()proto native int GetWidth()Returns: width of the cargo
proto native int GetHeight()Returns: height of the cargo
- out
row - returned row of the item at internal index
- out
col - returned col. 0 on xbox
- out
w - returned width of the item at internal index
- out
h - returned height of the item at internal index
Referenced by CargoContainer.GetCargoCapacity()
Returns: find internal index of the entity in cargo or -1 if not found
condition EntityAI::CanReceiveItemIntoCargo for Cargo.
Returns: true if cargo can be added, false otherwise
Referenced by EntityAI.CanReceiveItemIntoCargo()
condition EntityAI::CanSwapItemInCargo for Cargo.
Returns: true if cargo can be added, false otherwise
Referenced by EntityAI.CanSwapItemInCargo()
proto native int GetUserReservedLocationCount()proto bool GetUserReservedLocation(int index, out EntityAI eai, out int row, out int col, out int w, out int h, out int flp)- in
idx - index of the user reserved location
- out
eai - returned entity of the user reservation at internal index
- out
row - returned row of the user reservation at internal index
- out
col - returned col
- out
w - returned width of the user reservation at internal index
- out
h - returned height of the user reservation at internal index
- out
flp - returned flip
Returns: true if record found, false otherwise
proto native void SetUserReservedLocation(notnull EntityAI eai)proto native void ClearUserReservedLocation(notnull EntityAI eai)