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

◆ DropEntityWithTransform()

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

См. определение в файле 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)
Определения Debug.c:19
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Определения Inventory.c:22
bool TakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
move src to dst
Определения Inventory.c:1055
static bool SetGroundPosByTransform(EntityAI owner, notnull EntityAI item, out InventoryLocation ground, vector transform[4])
Определения Inventory.c:1284
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

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