class CargoBaseSource
CargoBase › Managed
All members, including inherited
represents base for cargo storage for entities
@NOTE: rows == y axis
Constructors 2
private void CargoBase()private void ~CargoBase()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
proto native bool IsProxyCargo()Returns: true if cargo is in proxy object
proto native int GetItemCount()Returns: number of items in cargo
Show 45 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.ApplyDrynessToItemEx(), Environment.ApplyWetnessToItem(), Environment.BodyPartHeatProperties(), Environment.ProcessItemHierarchyRecursive(), FireplaceBase.BurnItemsInFireplace(), FireplaceBase.IsCargoEmpty(), FireplaceBase.IsEmpty(), FireplaceBase.StopCooling(), HandsContainer.DropReceived(), ItemBase.CanReceiveAttachment(), ItemBase.DamageItemInCargo(), ItemBase.EEHealthLevelChanged(), ItemBase.GetNumberOfItems(), MiscGameplayFunctions.ThrowAllItemsInInventory(), PlateCarrierPouches.CanLoadItemIntoCargo(), PlateCarrierPouches.CanReceiveItemIntoCargo(), PlayerBase.GetMagazineToReload(), PluginInventoryRepair.MoveItemToCorrectPosition(), TentBase.CanBePacked(), UndergroundStash.GetStashedItem(), and UniversalTemperatureSourceLambdaBaseImpl.UpdateVicinityTemperatureRecursive()Returns: get item at specific index
Show 29 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.ApplyDrynessToItemEx(), Environment.ApplyWetnessToItem(), Environment.BodyPartHeatProperties(), Environment.ProcessItemHierarchyRecursive(), FireplaceBase.BurnItemsInFireplace(), FireplaceBase.StopCooling(), ItemBase.DamageItemInCargo(), ItemBase.EEHealthLevelChanged(), MiscGameplayFunctions.ThrowAllItemsInInventory(), 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
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
condition EntityAI::CanSwapItemInCargo for Cargo.
Returns: true if cargo can be added, false otherwise
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)