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

◆ DetachAllAttachments()

void ItemBase::DetachAllAttachments ( )
inlineprotected

detaches everything on catching end (some slots may not be accessible when folded)

См. определение в файле TrapSpawnBase.c строка 754

755 {
756 int count = GetInventory().AttachmentCount();
757 if (count > 0)
758 {
759 EntityAI att;
760 for (int i = 0; i < count; i++)
761 {
762 att = GetInventory().GetAttachmentFromIndex(i);
763 GetInventory().DropEntity(InventoryMode.SERVER,this,att);
764 }
765 }
766 }
InventoryMode
NOTE: PREDICTIVE is not to be used at all in multiplayer.
Определения Inventory.c:22
class LogManager EntityAI

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