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

◆ DropEntityInBounds()

bool GameInventory::DropEntityInBounds ( InventoryMode mode,
EntityAI owner,
notnull EntityAI item,
vector halfExtents,
float angle,
float cosAngle,
float sinAngle )
inlineprotected

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

1327 {
1328 if (LogManager.IsInventoryMoveLogEnable()) inventoryDebugPrint("[inv] I::Drop(" + typename.EnumToString(InventoryMode, mode) + ") item=" + item);
1329
1330 InventoryLocation src = new InventoryLocation();
1331 if (item.GetInventory().GetCurrentInventoryLocation(src))
1332 {
1333 InventoryLocation dst = new InventoryLocation();
1334
1335 SetGroundPosByOwnerBounds(owner, item, dst, halfExtents, angle, cosAngle, sinAngle);
1336
1337 return TakeToDst(mode, src, dst);
1338 }
1339
1340 Error("DropEntityInBounds - No inventory location");
1341 return false;
1342 }
void inventoryDebugPrint(string s)
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
static void SetGroundPosByOwnerBounds(EntityAI owner, notnull EntityAI item, out InventoryLocation ground, vector halfExtents, float angle, float cosAngle, float sinAngle)
bool TakeToDst(InventoryMode mode, notnull InventoryLocation src, notnull InventoryLocation dst)
move src to dst
void Error(string err)
Messagebox with error message.
Определения EnDebug.c:90

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