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

◆ DropEntityInBounds()

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

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

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