DayZ 1.30
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ DropEntityWithTransform()

bool GameInventory::DropEntityWithTransform ( InventoryMode mode,
EntityAI owner,
notnull EntityAI item,
vector transform[4] )
inlineprotected

См. определение в файле 3_Game/DayZ/Systems/Inventory/Inventory.c строка 1250

1251 {
1252 if (LogManager.IsInventoryMoveLogEnable()) inventoryDebugPrint("[inv] I::Drop(" + typename.EnumToString(InventoryMode, mode) + ") item=" + item);
1253 InventoryLocation src = new InventoryLocation();
1254 if (item.GetInventory().GetCurrentInventoryLocation(src))
1255 {
1256 InventoryLocation dst = new InventoryLocation();
1257 SetGroundPosByTransform(owner, item, dst, transform);
1258
1259 return TakeToDst(mode, src, dst);
1260 }
1261
1262 Error("DropEntityWithTransform - No inventory location");
1263 return false;
1264 }
void inventoryDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
bool TakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
move src to dst
static bool SetGroundPosByTransform(EntityAI owner, notnull EntityAI item, out InventoryLocation ground, vector transform[4])
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

Перекрестные ссылки Error(), inventoryDebugPrint(), LogManager::IsInventoryMoveLogEnable(), SetGroundPosByTransform() и TakeToDst().

Используется в DropEssentialAttachments().