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

◆ DropEntityWithTransform()

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

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

1292 {
1293 if (LogManager.IsInventoryMoveLogEnable()) inventoryDebugPrint("[inv] I::Drop(" + typename.EnumToString(InventoryMode, mode) + ") item=" + item);
1294 InventoryLocation src = new InventoryLocation();
1295 if (item.GetInventory().GetCurrentInventoryLocation(src))
1296 {
1297 InventoryLocation dst = new InventoryLocation();
1298 SetGroundPosByTransform(owner, item, dst, transform);
1299
1300 return TakeToDst(mode, src, dst);
1301 }
1302
1303 Error("DropEntityWithTransform - No inventory location");
1304 return false;
1305 }
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().